diff --git a/packages/nc-gui-v2/pages/projects/index.vue b/packages/nc-gui-v2/pages/projects/index.vue index 96c2f54fa8..62d78f51c3 100644 --- a/packages/nc-gui-v2/pages/projects/index.vue +++ b/packages/nc-gui-v2/pages/projects/index.vue @@ -59,7 +59,7 @@ const navDrawerOptions = [
@@ -71,7 +71,7 @@ const navDrawerOptions = [
- + diff --git a/packages/nc-gui-v2/pages/projects/index/list.vue b/packages/nc-gui-v2/pages/projects/index/list.vue index a62ddb9334..44f883b55b 100644 --- a/packages/nc-gui-v2/pages/projects/index/list.vue +++ b/packages/nc-gui-v2/pages/projects/index/list.vue @@ -6,9 +6,36 @@ interface Props { projects: ProjectType[] } -const props = defineProps() +const { projects } = defineProps() + +const { $e } = useNuxtApp() + +const openProject = async (project: ProjectType) => { + await navigateTo(`/nc/${project.id}`) + $e('a:project:open', { count: projects.length }) +}