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, useBase,
useBases, useBases,
useDialog, useDialog,
useGlobal,
useNuxtApp, useNuxtApp,
useRoles, useRoles,
useRouter, useRouter,
@ -46,6 +47,8 @@ const { isSharedBase } = storeToRefs(baseStore)
const { activeTable: _activeTable } = storeToRefs(useTablesStore()) const { activeTable: _activeTable } = storeToRefs(useTablesStore())
const { isMobileMode } = useGlobal()
const contextMenuTarget = reactive<{ type?: 'base' | 'source' | 'table' | 'main' | 'layout'; value?: any }>({}) const contextMenuTarget = reactive<{ type?: 'base' | 'source' | 'table' | 'main' | 'layout'; value?: any }>({})
const setMenuContext = (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"> <div v-if="basesList?.length">
<Draggable <Draggable
:model-value="basesList" :model-value="basesList"
:disabled="!isUIAllowed('baseReorder') || basesList?.length < 2" :disabled="isMobileMode || !isUIAllowed('baseReorder') || basesList?.length < 2"
item-key="id" item-key="id"
handle=".base-title-node" handle=".base-title-node"
ghost-class="ghost" ghost-class="ghost"

Loading…
Cancel
Save