Browse Source

fix(extensions): org chart: auto select active view

nc-org-chart-extension
amandesai01 3 days ago
parent
commit
3b4fba1242
  1. 2
      packages/nc-gui/composables/useExtensionHelper.ts

2
packages/nc-gui/composables/useExtensionHelper.ts

@ -29,6 +29,7 @@ const [useProvideExtensionHelper, useExtensionHelper] = useInjectionState(
const fullscreenModalSize = ref<keyof typeof modalSizes>(extensionManifest.value?.config?.modalSize || 'lg') const fullscreenModalSize = ref<keyof typeof modalSizes>(extensionManifest.value?.config?.modalSize || 'lg')
const activeTableId = computed(() => route.params.viewId as string | undefined) const activeTableId = computed(() => route.params.viewId as string | undefined)
const activeViewId = computed(() => route.params.viewTitle as string | undefined)
const collapsed = computed({ const collapsed = computed({
get: () => extension.value?.meta?.collapsed ?? false, get: () => extension.value?.meta?.collapsed ?? false,
@ -225,6 +226,7 @@ const [useProvideExtensionHelper, useExtensionHelper] = useInjectionState(
showExpandBtn, showExpandBtn,
fullscreenModalSize, fullscreenModalSize,
activeTableId, activeTableId,
activeViewId,
getViewsForTable, getViewsForTable,
getData, getData,
getTableMeta, getTableMeta,

Loading…
Cancel
Save