Browse Source

chore(nc-gui): remove unused code

pull/6824/head
աɨռɢӄաօռɢ 1 year ago
parent
commit
1abd23e2c3
  1. 2
      packages/nc-gui/components/shared-view/Gallery.vue
  2. 2
      packages/nc-gui/components/shared-view/Kanban.vue
  3. 2
      packages/nc-gui/components/shared-view/Map.vue
  4. 3
      packages/nc-gui/composables/useViewSorts.ts

2
packages/nc-gui/components/shared-view/Gallery.vue

@ -1,7 +1,7 @@
<script setup lang="ts">
import { ActiveViewInj, FieldsInj, IsPublicInj, MetaInj, ReadonlyInj, ReloadViewDataHookInj } from '#imports'
const { sharedView, meta, sorts, nestedFilters } = useSharedView()
const { sharedView, meta, nestedFilters } = useSharedView()
const reloadEventHook = createEventHook()

2
packages/nc-gui/components/shared-view/Kanban.vue

@ -9,7 +9,7 @@ import {
useProvideKanbanViewStore,
} from '#imports'
const { sharedView, meta, sorts, nestedFilters } = useSharedView()
const { sharedView, meta, nestedFilters } = useSharedView()
const reloadEventHook = createEventHook()

2
packages/nc-gui/components/shared-view/Map.vue

@ -9,7 +9,7 @@ import {
useProvideMapViewStore,
} from '#imports'
const { sharedView, meta, sorts, nestedFilters } = useSharedView()
const { sharedView, meta, nestedFilters } = useSharedView()
const reloadEventHook = createEventHook()

3
packages/nc-gui/composables/useViewSorts.ts

@ -13,13 +13,10 @@ import {
useBase,
useNuxtApp,
useRoles,
useSharedView,
useSmartsheetStoreOrThrow,
} from '#imports'
export function useViewSorts(view: Ref<ViewType | undefined>, reloadData?: () => void) {
const { sharedView } = useSharedView()
const { sorts, eventBus } = useSmartsheetStoreOrThrow()
const { $api, $e } = useNuxtApp()

Loading…
Cancel
Save