f5d4aa928c
* feat(fe2): save expanded state for model structured item cards * minor improvement to View All
11 lines
369 B
TypeScript
11 lines
369 B
TypeScript
import { useIsItemExpanded } from '~~/lib/common/composables/window'
|
|
|
|
export const useIsModelExpanded = (params: {
|
|
fullName: MaybeRef<string>
|
|
projectId: MaybeRef<string>
|
|
}) => {
|
|
const id = computed(() => `${unref(params.projectId)}:${unref(params.fullName)}`)
|
|
const state = useIsItemExpanded({ stateName: 'ModelExpandedState', id })
|
|
return state.isExpanded
|
|
}
|