mirror of
https://github.com/nocodb/nocodb.git
synced 2026-02-01 22:08:33 +00:00
fix: in mobile view if base list open and user navigated to any view then hide baselist and show home page
This commit is contained in:
@@ -3,9 +3,15 @@ const { isLeftSidebarOpen } = storeToRefs(useSidebarStore())
|
||||
|
||||
const { isMobileMode } = useGlobal()
|
||||
|
||||
const { showProjectList } = storeToRefs(useBases())
|
||||
|
||||
const onClick = () => {
|
||||
if (isLeftSidebarOpen.value) return
|
||||
|
||||
if (isMobileMode.value && showProjectList.value) {
|
||||
showProjectList.value = false
|
||||
}
|
||||
|
||||
isLeftSidebarOpen.value = !isLeftSidebarOpen.value
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user