Browse Source

Merge pull request #3221 from nocodb/refactor/gui-v2-more-actions

refactor(gui-v2): use ExportTypes from nocodb-sdk
pull/3223/head
Muhammed Mustafa 2 years ago committed by GitHub
parent
commit
59ffb10224
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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> <script lang="ts" setup>
import * as XLSX from 'xlsx' 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 FileSaver from 'file-saver'
import { message } from 'ant-design-vue' import { message } from 'ant-design-vue'
import { import {
@ -18,19 +17,12 @@ import {
useUIPermission, useUIPermission,
} from '#imports' } from '#imports'
enum ExportTypes {
EXCEL = 'excel',
CSV = 'csv',
}
const sharedViewListDlg = ref(false) const sharedViewListDlg = ref(false)
const isPublicView = inject(IsPublicInj, ref(false)) const isPublicView = inject(IsPublicInj, ref(false))
const isView = false const isView = false
// TODO: pending for shared view
const { project } = useProject() const { project } = useProject()
const { $api } = useNuxtApp() const { $api } = useNuxtApp()

Loading…
Cancel
Save