mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 00:56:48 +00:00
feat/Added basic erd support
This commit is contained in:
@@ -10,6 +10,10 @@ export function useMetas() {
|
||||
const { tables } = useProject()
|
||||
|
||||
const metas = useState<{ [idOrTitle: string]: TableType | any }>('metas', () => ({}))
|
||||
const metasWithId = computed(() => {
|
||||
const idEntries = Object.entries(metas.value).filter(([k, v]) => k === v.id)
|
||||
return Object.fromEntries(idEntries)
|
||||
})
|
||||
const loadingState = useState<Record<string, boolean>>('metas-loading-state', () => ({}))
|
||||
|
||||
const setMeta = async (model: any) => {
|
||||
@@ -91,5 +95,5 @@ export function useMetas() {
|
||||
}
|
||||
}
|
||||
|
||||
return { getMeta, clearAllMeta, metas, removeMeta, setMeta }
|
||||
return { getMeta, clearAllMeta, metas, metasWithId, removeMeta, setMeta }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user