Skip to content

Commit

Permalink
fic(nc-gui): disable base reorder in mobile view #7582
Browse files Browse the repository at this point in the history
  • Loading branch information
rameshmane7218 committed Feb 8, 2024
1 parent 207c76f commit ff74a9e
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

1 comment on commit ff74a9e

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR changes have been deployed. Please run the following command to verify:

docker run -d -p 8888:8080 nocodb/nocodb-timely:0.204.0-pr-7584-20240209-0131

Please sign in to comment.