Browse Source

fic(nc-gui): disable base reorder in mobile view nocodb/nocodb#7582

pull/7584/head
Ramesh Mane 9 months ago
parent
commit
ff74a9e2d5
  1. 5
      packages/nc-gui/components/dashboard/TreeView/index.vue

5
packages/nc-gui/components/dashboard/TreeView/index.vue

@ -16,6 +16,7 @@ import {
useBase,
useBases,
useDialog,
useGlobal,
useNuxtApp,
useRoles,
useRouter,
@ -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) => {
@ -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"

Loading…
Cancel
Save