Browse Source

feat: add tele for excel import

pull/1931/head
Wing-Kam Wong 3 years ago
parent
commit
c56cc3a9a0
  1. 2
      packages/nc-gui/components/import/excelImport.vue
  2. 2
      packages/nc-gui/components/templates/createProjectFromTemplateBtn.vue

2
packages/nc-gui/components/import/excelImport.vue

@ -66,7 +66,7 @@
dense dense
:rules="[v => !!v || $t('general.required') ]" :rules="[v => !!v || $t('general.required') ]"
/> />
<v-btn class="ml-3" color="primary" @click="loadUrl"> <v-btn v-t="['c:project:create:excel:load-url']" class="ml-3" color="primary" @click="loadUrl">
<!--Load--> <!--Load-->
{{ $t('general.load') }} {{ $t('general.load') }}
</v-btn> </v-btn>

2
packages/nc-gui/components/templates/createProjectFromTemplateBtn.vue

@ -124,6 +124,8 @@ export default {
} else { } else {
// Create an empty project // Create an empty project
try { try {
this.$e("a:project:create:excel");
project = await this.$api.project.create({ project = await this.$api.project.create({
title: this.templateData.title, title: this.templateData.title,
external: false external: false

Loading…
Cancel
Save