π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix(nc-gui): keep forceShowBaseList default value to false
Ramesh Mane9003ef70d86a
diff --git a/packages/nc-gui/pages/index.vue b/packages/nc-gui/pages/index.vueindex 367867f316..b6048cc6e3 100644--- a/packages/nc-gui/pages/index.vue+++ b/packages/nc-gui/pages/index.vue@@ -10,6 +10,8 @@ const { isSharedBase, isSharedErd } = storeToRefs(useBase())const basesStore = useBases()+const { forceShowBaseList } = storeToRefs(basesStore)+const { populateWorkspace } = useWorkspace()const { signedIn } = useGlobal()@@ -23,6 +25,9 @@ const route = router.currentRouteconst { basesList } = storeToRefs(basesStore)const autoNavigateToProject = async () => {+ // If it is auto navigate to project that means we have to show base list sidebar instead of directly showing active base sidebar+ forceShowBaseList.value = true+const routeName = route.value.name as stringif (routeName !== 'index-typeOrId' && routeName !== 'index') {returndiff --git a/packages/nc-gui/store/bases.ts b/packages/nc-gui/store/bases.tsindex 6a45d7211a..3ef4bb758d 100644--- a/packages/nc-gui/store/bases.ts+++ b/packages/nc-gui/store/bases.ts@@ -39,7 +39,7 @@ export const useBases = defineStore('basesStore', () => {return route.value.params.baseId as string | undefined})- const forceShowBaseList = ref(true)+ const forceShowBaseList = ref(false)const showProjectList = ref<boolean>(route.value.params.typeOrId === 'base' ? false : !route.value.params.baseId)@@ -412,6 +412,9 @@ export const useBases = defineStore('basesStore', () => {* */forceShowBaseList.value = true},+ {+ immediate: true,+ },)/**