Browse Source

Merge pull request #7584 from nocodb/nc-fix/mobile-base-reorder

fic(nc-gui): disable base reorder in mobile view nocodb/nocodb#7582
pull/7589/head
Raju Udava 10 months ago committed by GitHub
parent
commit
da83f084b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  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