From ef76cc2074b3b73e84fca271a7a1867d53b51e32 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Fri, 29 Jul 2022 15:08:30 +0530 Subject: [PATCH] chore/gui-v2-user-management-project-provide-populated-before-navigating-to-project-page --- packages/nc-gui-v2/pages/index/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/pages/index/index.vue b/packages/nc-gui-v2/pages/index/index.vue index 575ca831eb..8f1ad54e40 100644 --- a/packages/nc-gui-v2/pages/index/index.vue +++ b/packages/nc-gui-v2/pages/index/index.vue @@ -15,6 +15,7 @@ import MdiDatabaseOutline from '~icons/mdi/database-outline' const { $api, $state, $e } = useNuxtApp() const toast = useToast() +const { loadProject } = useProject() const filterQuery = ref('') const loading = ref(true) @@ -121,8 +122,9 @@ $state.sidebarOpen.value = false v-else :custom-row=" (record) => ({ - onClick: () => { + onClick: async () => { $e('a:project:open') + await loadProject(record.id) navigateTo(`/nc/${record.id}`) }, })