|
|
@ -84,6 +84,7 @@ const [setup, use] = useInjectionState((_projectId?: MaybeRef<string>) => { |
|
|
|
} |
|
|
|
} |
|
|
|
await loadProjectRoles() |
|
|
|
await loadProjectRoles() |
|
|
|
await loadTables() |
|
|
|
await loadTables() |
|
|
|
|
|
|
|
setTheme(projectMeta.value?.theme) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async function updateProject(data: Partial<ProjectType>) { |
|
|
|
async function updateProject(data: Partial<ProjectType>) { |
|
|
@ -104,10 +105,6 @@ const [setup, use] = useInjectionState((_projectId?: MaybeRef<string>) => { |
|
|
|
setTheme(theme) |
|
|
|
setTheme(theme) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
watch(project, () => { |
|
|
|
|
|
|
|
setTheme(projectMeta.value?.theme || {}) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
watch( |
|
|
|
watch( |
|
|
|
() => route.params, |
|
|
|
() => route.params, |
|
|
|
(v) => { |
|
|
|
(v) => { |
|
|
@ -117,6 +114,7 @@ const [setup, use] = useInjectionState((_projectId?: MaybeRef<string>) => { |
|
|
|
}, |
|
|
|
}, |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TODO useProject should only called inside a project for now this doesn't work
|
|
|
|
onScopeDispose(() => { |
|
|
|
onScopeDispose(() => { |
|
|
|
project.value = {} |
|
|
|
project.value = {} |
|
|
|
tables.value = [] |
|
|
|
tables.value = [] |
|
|
|