Revert "Nc fix(nc-gui): always show baselist sidebar if we are navigating from different page"

This commit is contained in:
Ramesh Mane
2025-09-05 13:21:34 +05:30
committed by GitHub
parent 15a4d9f20a
commit c8602fa0d4
12 changed files with 22 additions and 110 deletions

View File

@@ -34,7 +34,7 @@ const { isMobileMode, user } = useGlobal()
const { createProject: _createProject, updateProject, getProjectMetaInfo } = basesStore
const { bases, basesUser, showProjectList, forceShowBaseList } = storeToRefs(basesStore)
const { bases, basesUser, showProjectList } = storeToRefs(basesStore)
const collaborators = computed(() => {
return (basesUser.value.get(base.value?.id) || []).map((user: any) => {
@@ -199,10 +199,6 @@ function openTableCreateDialog(sourceIndex?: number | undefined, showSourceSelec
onCloseCallback: () => {
base.value.isExpanded = true
if (forceShowBaseList.value) {
forceShowBaseList.value = false
}
if (!activeKey.value || !activeKey.value.includes(`collapse-${sourceId}`)) {
activeKey.value.push(`collapse-${sourceId}`)
}
@@ -245,7 +241,6 @@ const onProjectClick = async (base: NcProject, ignoreNavigation?: boolean, toggl
const cmdOrCtrl = isMac() ? metaKey.value : control.value
if (!cmdOrCtrl && activeProjectId.value === base.id) {
forceShowBaseList.value = false
showProjectList.value = false
return
}
@@ -301,7 +296,6 @@ const onProjectClick = async (base: NcProject, ignoreNavigation?: boolean, toggl
updatedProject.isLoading = false
}
forceShowBaseList.value = false
showProjectList.value = false
}