From 41f21d9ad1d44ee93373eba24ee25b24013e2344 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 7 Dec 2022 17:16:08 +0530 Subject: [PATCH] refactor(gui): enable drag n drop Signed-off-by: Pranav C --- packages/nc-gui/components/dashboard/TreeView.vue | 10 +++++----- .../components/smartsheet/column/CurrencyOptions.vue | 9 +-------- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/packages/nc-gui/components/dashboard/TreeView.vue b/packages/nc-gui/components/dashboard/TreeView.vue index 22b1c51054..7cbdea14cb 100644 --- a/packages/nc-gui/components/dashboard/TreeView.vue +++ b/packages/nc-gui/components/dashboard/TreeView.vue @@ -77,7 +77,7 @@ const initSortable = (el: Element) => { if (!base_id) return if (sortables[base_id]) sortables[base_id].destroy() Sortable.create(el as HTMLLIElement, { - handle: '.nc-drag-icon', + // handle: '.nc-drag-icon', onEnd: async (evt) => { const offset = tables.value.findIndex((table) => table.base_id === base_id) @@ -565,7 +565,7 @@ const setIcon = (icon: string, table: TableType) => { { hidden: !filteredTables?.includes(table), active: activeTable === table.id }, `nc-project-tree-tbl nc-project-tree-tbl-${table.title}`, ]" - class="nc-tree-item text-sm cursor-pointer group1" + class="nc-tree-item text-sm cursor-pointer group" :data-order="table.order" :data-id="table.id" :data-testid="`tree-view-table-${table.title}`" @@ -577,12 +577,12 @@ const setIcon = (icon: string, table: TableType) => {
-