Browse Source

feat(gui-v2): add directives

pull/2795/head
Wing-Kam Wong 2 years ago
parent
commit
2fe3215c6e
  1. 16
      packages/nc-gui-v2/components/dashboard/TabView.vue

16
packages/nc-gui-v2/components/dashboard/TabView.vue

@ -45,7 +45,7 @@ const onEdit = (targetKey: number, action: string) => {
</span> </span>
</template> </template>
<a-menu-item-group v-if="isUIAllowed('addTable')" title=""> <a-menu-item-group v-if="isUIAllowed('addTable')" title="">
<a-menu-item key="add-new-table" @click="tableCreateDialog = true"> <a-menu-item key="add-new-table" v-t="['a:actions:create-table']" @click="tableCreateDialog = true">
<span> <span>
<MdiTableIcon class="text-primary mdi-icons" /> <MdiTableIcon class="text-primary mdi-icons" />
<!-- Add new table --> <!-- Add new table -->
@ -54,28 +54,28 @@ const onEdit = (targetKey: number, action: string) => {
</a-menu-item> </a-menu-item>
</a-menu-item-group> </a-menu-item-group>
<a-menu-item-group title="QUICK IMPORT FROM"> <a-menu-item-group title="QUICK IMPORT FROM">
<a-menu-item v-if="isUIAllowed('airtableImport')" key="quick-import-airtable"> <a-menu-item v-if="isUIAllowed('airtableImport')" key="quick-import-airtable" v-t="['a:actions:import-airtable']">
<span> <span>
<MdiAirTableIcon class="text-primary mdi-icons" /> <MdiAirTableIcon class="text-primary mdi-icons" />
<!-- TODO: i18n --> <!-- TODO: i18n -->
Airtable Airtable
</span> </span>
</a-menu-item> </a-menu-item>
<a-menu-item v-if="isUIAllowed('csvImport')" key="quick-import-csv"> <a-menu-item v-if="isUIAllowed('csvImport')" key="quick-import-csv" v-t="['a:actions:import-csv']">
<span> <span>
<MdiCsvIcon class="text-primary mdi-icons" /> <MdiCsvIcon class="text-primary mdi-icons" />
<!-- TODO: i18n --> <!-- TODO: i18n -->
CSV file CSV file
</span> </span>
</a-menu-item> </a-menu-item>
<a-menu-item v-if="isUIAllowed('jsonImport')" key="quick-import-json"> <a-menu-item v-if="isUIAllowed('jsonImport')" key="quick-import-json" v-t="['a:actions:import-json']">
<span> <span>
<MdiJSONIcon class="text-primary mdi-icons" /> <MdiJSONIcon class="text-primary mdi-icons" />
<!-- TODO: i18n --> <!-- TODO: i18n -->
JSON file JSON file
</span> </span>
</a-menu-item> </a-menu-item>
<a-menu-item v-if="isUIAllowed('excelImport')" key="quick-import-excel"> <a-menu-item v-if="isUIAllowed('excelImport')" key="quick-import-excel" v-t="['a:actions:import-excel']">
<span> <span>
<MdiExcelIcon class="text-primary mdi-icons" /> <MdiExcelIcon class="text-primary mdi-icons" />
<!-- TODO: i18n --> <!-- TODO: i18n -->
@ -84,12 +84,12 @@ const onEdit = (targetKey: number, action: string) => {
</a-menu-item> </a-menu-item>
</a-menu-item-group> </a-menu-item-group>
<a-divider style="margin: 0px" /> <a-divider style="margin: 0px" />
<a-menu-item key="add-new-table" @click="tableCreateDialog = true"> <a-menu-item v-if="isUIAllowed('importRequest')" key="add-new-table" v-t="['e:datasource:import-request']">
<span> <a href="https://github.com/nocodb/nocodb/issues/2052" target="_blank">
<MdiRequestDataSourceIcon class="text-primary mdi-icons" /> <MdiRequestDataSourceIcon class="text-primary mdi-icons" />
<!-- TODO: i18n --> <!-- TODO: i18n -->
Request Data Source Request Data Source
</span> </a>
</a-menu-item> </a-menu-item>
</a-sub-menu> </a-sub-menu>
</a-menu> </a-menu>

Loading…
Cancel
Save