diff --git a/packages/nc-gui-v2/components/smartsheet/Form.vue b/packages/nc-gui-v2/components/smartsheet/Form.vue index 4fa177a529..5a541e8a65 100644 --- a/packages/nc-gui-v2/components/smartsheet/Form.vue +++ b/packages/nc-gui-v2/components/smartsheet/Form.vue @@ -48,7 +48,7 @@ const view = inject(ActiveViewInj) const { loadFormView, insertRow, formColumnData, formViewData, updateFormView } = useViewData(meta, view as any) -const { showAll, hideAll, saveOrUpdate } = useViewColumns(view, meta as any, false, async () => { +const { showAll, hideAll, saveOrUpdate } = useViewColumns(view, meta as any, async () => { await loadFormView() setFormData() }) diff --git a/packages/nc-gui-v2/components/smartsheet/sidebar/index.vue b/packages/nc-gui-v2/components/smartsheet/sidebar/index.vue index 92ab9dd635..a3f5efd14e 100644 --- a/packages/nc-gui-v2/components/smartsheet/sidebar/index.vue +++ b/packages/nc-gui-v2/components/smartsheet/sidebar/index.vue @@ -3,13 +3,29 @@ import type { FormType, GalleryType, GridType, KanbanType, ViewTypes } from 'noc import MenuTop from './MenuTop.vue' import MenuBottom from './MenuBottom.vue' import Toolbar from './toolbar/index.vue' -import { computed, inject, provide, ref, useElementHover, useRoute, useRouter, useViews, watch } from '#imports' -import { ActiveViewInj, MetaInj, RightSidebarInj, ViewListInj } from '~/context' +import { + ActiveViewInj, + IsFormInj, + MetaInj, + RightSidebarInj, + ViewListInj, + computed, + inject, + provide, + ref, + useElementHover, + useRoute, + useRouter, + useViews, + watch, +} from '#imports' const meta = inject(MetaInj, ref()) const activeView = inject(ActiveViewInj, ref()) +const isForm = inject(IsFormInj) + const { views, loadViews } = useViews(meta) const { isUIAllowed } = useUIPermission() @@ -109,8 +125,7 @@ function onCreate(view: GridType | FormType | KanbanType | GalleryType) { - - + diff --git a/packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/index.vue b/packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/index.vue index 0086d4f89d..5418c57772 100644 --- a/packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/index.vue +++ b/packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/index.vue @@ -5,9 +5,12 @@ import Reload from './Reload.vue' import ExportCache from './ExportCache.vue' import DeleteCache from './DeleteCache.vue' import DebugMeta from './DebugMeta.vue' +import { IsFormInj } from '#imports' const { isUIAllowed } = useUIPermission() +const isForm = inject(IsFormInj) + const debug = $ref(false) const clickCount = $ref(0) @@ -15,6 +18,7 @@ const clickCount = $ref(0)