Browse Source

refactor(gui-v2): use ExportTypes from nocodb-sdk

pull/3221/head
Wing-Kam Wong 2 years ago
parent
commit
d7f222c69a
  1. 10
      packages/nc-gui-v2/components/smartsheet-toolbar/MoreActions.vue

10
packages/nc-gui-v2/components/smartsheet-toolbar/MoreActions.vue

@ -1,7 +1,6 @@
<script lang="ts" setup>
import * as XLSX from 'xlsx'
// todo: export types is missing EXCEL
// import { ExportTypes } from 'nocodb-sdk'
import { ExportTypes } from 'nocodb-sdk'
import FileSaver from 'file-saver'
import { message } from 'ant-design-vue'
import {
@ -18,19 +17,12 @@ import {
useUIPermission,
} from '#imports'
enum ExportTypes {
EXCEL = 'excel',
CSV = 'csv',
}
const sharedViewListDlg = ref(false)
const isPublicView = inject(IsPublicInj, ref(false))
const isView = false
// TODO: pending for shared view
const { project } = useProject()
const { $api } = useNuxtApp()

Loading…
Cancel
Save