From 970b2b3229a77637235c280878766d3d33659e22 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 8 Dec 2022 10:59:58 +0530 Subject: [PATCH] fix(gui): introduce infinite scroll to avoid delay in loading emoji list Signed-off-by: Pranav C --- .../nc-gui/components/dashboard/TreeView.vue | 17 ++++++----------- .../nc-gui/components/general/EmojiIcons.vue | 14 ++++++++++++-- .../nc-gui/components/general/IconifyIcon.vue | 7 ------- packages/nc-gui/package-lock.json | 11 +++++++++++ packages/nc-gui/package.json | 1 + .../[projectType]/[projectId]/index/index.vue | 3 ++- 6 files changed, 32 insertions(+), 21 deletions(-) delete mode 100644 packages/nc-gui/components/general/IconifyIcon.vue diff --git a/packages/nc-gui/components/dashboard/TreeView.vue b/packages/nc-gui/components/dashboard/TreeView.vue index 4fcd441e12..2d84d402df 100644 --- a/packages/nc-gui/components/dashboard/TreeView.vue +++ b/packages/nc-gui/components/dashboard/TreeView.vue @@ -3,6 +3,7 @@ import type { TableType } from 'nocodb-sdk' import type { Input } from 'ant-design-vue' import Sortable from 'sortablejs' import GithubButton from 'vue-github-button' +import { Icon } from '@iconify/vue' import type { VNodeRef } from '#imports' import { ClientType, @@ -27,7 +28,7 @@ import { import MdiView from '~icons/mdi/eye-circle-outline' import MdiTableLarge from '~icons/mdi/table-large' -const { addTab , updateTab } = useTabs() +const { addTab, updateTab } = useTabs() const { $api, $e } = useNuxtApp() @@ -307,14 +308,12 @@ const setIcon = (icon: string, table: TableType) => { } tables.value.splice(tables.value.indexOf(table), 1, { ...table }) - updateTab({ id: table.id }, { meta: table.meta }) $api.dbTable.update(table.id as string, { meta: table.meta, }) } -