Browse Source

fix: Added isDefaultBase util to FE

pull/6444/head
Muhammed Mustafa 1 year ago
parent
commit
85fb294f7a
  1. 2
      packages/nc-gui/components/dashboard/TreeView/ViewsList.vue
  2. 13
      packages/nc-gui/components/dashboard/TreeView/ViewsNode.vue

2
packages/nc-gui/components/dashboard/TreeView/ViewsList.vue

@ -4,8 +4,8 @@ import { ViewTypes } from 'nocodb-sdk'
import type { SortableEvent } from 'sortablejs' import type { SortableEvent } from 'sortablejs'
import Sortable from 'sortablejs' import Sortable from 'sortablejs'
import type { Menu as AntMenu } from 'ant-design-vue' import type { Menu as AntMenu } from 'ant-design-vue'
import { isDefaultBase as _isDefaultBase } from '~/utils/baseUtils'
import { import {
isDefaultBase as _isDefaultBase,
extractSdkResponseErrorMsg, extractSdkResponseErrorMsg,
message, message,
onMounted, onMounted,

13
packages/nc-gui/components/dashboard/TreeView/ViewsNode.vue

@ -2,8 +2,17 @@
import type { VNodeRef } from '@vue/runtime-core' import type { VNodeRef } from '@vue/runtime-core'
import type { KanbanType, ViewType, ViewTypes } from 'nocodb-sdk' import type { KanbanType, ViewType, ViewTypes } from 'nocodb-sdk'
import type { WritableComputedRef } from '@vue/reactivity' import type { WritableComputedRef } from '@vue/reactivity'
import { isDefaultBase as _isDefaultBase } from '~/utils/baseUtils' import {
import { IsLockedInj, inject, message, onKeyStroke, useDebounceFn, useNuxtApp, useRoles, useVModel } from '#imports' IsLockedInj,
isDefaultBase as _isDefaultBase,
inject,
message,
onKeyStroke,
useDebounceFn,
useNuxtApp,
useRoles,
useVModel,
} from '#imports'
interface Props { interface Props {
view: ViewType view: ViewType

Loading…
Cancel
Save