diff --git a/packages/nc-gui/components/ProjectTreeView.vue b/packages/nc-gui/components/ProjectTreeView.vue index 7da30e6573..f074bd2c27 100644 --- a/packages/nc-gui/components/ProjectTreeView.vue +++ b/packages/nc-gui/components/ProjectTreeView.vue @@ -769,12 +769,12 @@ :heading="selectedNodeForDelete.heading" type="error" /> - @@ -795,7 +795,7 @@ import DlgTableCreate from "@/components/utils/dlgTableCreate"; import DlgViewCreate from "@/components/utils/dlgViewCreate"; import SponsorMini from "@/components/sponsorMini"; import {validateTableName} from "~/helpers"; -import ExcelImport from "~/components/import/excelImport"; +import QuickImport from "~/components/import/quickImport"; import draggable from "vuedraggable"; import GithubStarBtn from "~/components/githubStarBtn"; @@ -810,7 +810,7 @@ export default { SettingsModal, GithubStarBtn, draggable, - ExcelImport, + QuickImport, SponsorMini, DlgViewCreate, DlgTableCreate, @@ -864,7 +864,7 @@ export default { open: [], search: null, menuVisible: false, - excelImportDialog: false, + quickImportDialog: false, x: 0, y: 0, menuItem: null, @@ -1162,7 +1162,7 @@ export default { this.miniExpanded = false; } }, - onExcelImport() { + onQuickImport() { if (!this.menuItem || this.menuItem.type !== "tableDir") { this.menuItem = this.listViewArr.find((n) => n.type === "tableDir"); } @@ -1437,7 +1437,7 @@ export default { await this.loadViews(this.menuItem); this.$toast.success("Views refreshed").goAway(1000); } else if (action === "IMPORT_EXCEL") { - this.excelImportDialog = true; + this.quickImportDialog = true; } else if (action === "ENV_DB_FUNCTIONS_REFRESH") { await this.loadFunctions(this.menuItem); this.$toast.success("Functions refreshed").goAway(1000); diff --git a/packages/nc-gui/components/import/excelImport.vue b/packages/nc-gui/components/import/quickImport.vue similarity index 83% rename from packages/nc-gui/components/import/excelImport.vue rename to packages/nc-gui/components/import/quickImport.vue index c9f172bb26..e1c9ae8ecf 100644 --- a/packages/nc-gui/components/import/excelImport.vue +++ b/packages/nc-gui/components/import/quickImport.vue @@ -43,8 +43,8 @@ {{ $t('msg.info.upload_sub') }}

-

- +

+ {{ $t('msg.info.excelSupport') }}

@@ -60,7 +60,7 @@ v-model="url" hide-details="auto" type="url" - :label="$t('msg.info.excelURL')" + :label="quickImportType == 'excel' ? $t('msg.info.excelURL') : $t('msg.info.csvURL') " class="caption" outlined dense @@ -106,6 +106,7 @@