Skip to content

Commit

Permalink
Merge pull request #7584 from nocodb/nc-fix/mobile-base-reorder
Browse files Browse the repository at this point in the history
fic(nc-gui): disable base reorder in mobile view #7582
  • Loading branch information
dstala committed Feb 9, 2024
2 parents 07c7f6a + ff74a9e commit da83f08
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/nc-gui/components/dashboard/TreeView/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
useBase,
useBases,
useDialog,
useGlobal,
useNuxtApp,
useRoles,
useRouter,
Expand Down Expand Up @@ -46,6 +47,8 @@ const { isSharedBase } = storeToRefs(baseStore)
const { activeTable: _activeTable } = storeToRefs(useTablesStore())
const { isMobileMode } = useGlobal()
const contextMenuTarget = reactive<{ type?: 'base' | 'source' | 'table' | 'main' | 'layout'; value?: any }>({})
const setMenuContext = (type: 'base' | 'source' | 'table' | 'main' | 'layout', value?: any) => {
Expand Down Expand Up @@ -259,7 +262,7 @@ watch(
<div v-if="basesList?.length">
<Draggable
:model-value="basesList"
:disabled="!isUIAllowed('baseReorder') || basesList?.length < 2"
:disabled="isMobileMode || !isUIAllowed('baseReorder') || basesList?.length < 2"
item-key="id"
handle=".base-title-node"
ghost-class="ghost"
Expand Down

0 comments on commit da83f08

Please sign in to comment.