mirror of
https://github.com/nocodb/nocodb.git
synced 2026-02-02 00:08:26 +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 { isMobileMode } = useGlobal()
|
||||||
|
|
||||||
|
const { showProjectList } = storeToRefs(useBases())
|
||||||
|
|
||||||
const onClick = () => {
|
const onClick = () => {
|
||||||
if (isLeftSidebarOpen.value) return
|
if (isLeftSidebarOpen.value) return
|
||||||
|
|
||||||
|
if (isMobileMode.value && showProjectList.value) {
|
||||||
|
showProjectList.value = false
|
||||||
|
}
|
||||||
|
|
||||||
isLeftSidebarOpen.value = !isLeftSidebarOpen.value
|
isLeftSidebarOpen.value = !isLeftSidebarOpen.value
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user