Browse Source

fix(nc-gui): runtime directive warnings in BaseOption.vue

pull/6954/head
աɨռɢӄաօռɢ 1 year ago
parent
commit
dad1c94f7a
  1. 37
      packages/nc-gui/components/dashboard/TreeView/BaseOptions.vue

37
packages/nc-gui/components/dashboard/TreeView/BaseOptions.vue

@ -62,50 +62,37 @@ function openQuickImportDialog(type: string) {
<NcSubMenu class="py-0" data-testid="nc-sidebar-base-import"> <NcSubMenu class="py-0" data-testid="nc-sidebar-base-import">
<template #title> <template #title>
<GeneralIcon icon="download" /> <GeneralIcon icon="download" />
{{ $t('labels.importData') }} {{ $t('labels.importData') }}
</template> </template>
<template #expandIcon></template> <template #expandIcon></template>
<NcMenuItem <template v-if="isUIAllowed('airtableImport', { roles: baseRole })" v-e="['c:import:airtable']">
v-if="isUIAllowed('airtableImport', { roles: baseRole })" <NcMenuItem key="quick-import-airtable" @click="openAirtableImportDialog(source.base_id, source.id)">
key="quick-import-airtable"
v-e="['c:import:airtable']"
@click="openAirtableImportDialog(source.base_id, source.id)"
>
<GeneralIcon icon="airtable" class="max-w-3.75 group-hover:text-black" /> <GeneralIcon icon="airtable" class="max-w-3.75 group-hover:text-black" />
<div class="ml-0.5">{{ $t('labels.airtable') }}</div> <div class="ml-0.5">{{ $t('labels.airtable') }}</div>
</NcMenuItem> </NcMenuItem>
</template>
<NcMenuItem <template v-if="isUIAllowed('csvImport', { roles: baseRole })" key="quick-import-csv" v-e="['c:import:csv']">
v-if="isUIAllowed('csvImport', { roles: baseRole })" <NcMenuItem @click="openQuickImportDialog('csv')">
key="quick-import-csv"
v-e="['c:import:csv']"
@click="openQuickImportDialog('csv')"
>
<GeneralIcon icon="csv" class="w-4 group-hover:text-black" /> <GeneralIcon icon="csv" class="w-4 group-hover:text-black" />
{{ $t('labels.csvFile') }} {{ $t('labels.csvFile') }}
</NcMenuItem> </NcMenuItem>
</template>
<NcMenuItem <template v-if="isUIAllowed('jsonImport', { roles: baseRole })" v-e="['c:import:json']">
v-if="isUIAllowed('jsonImport', { roles: baseRole })" <NcMenuItem key="quick-import-json" @click="openQuickImportDialog('json')">
key="quick-import-json"
v-e="['c:import:json']"
@click="openQuickImportDialog('json')"
>
<GeneralIcon icon="code" class="w-4 group-hover:text-black" /> <GeneralIcon icon="code" class="w-4 group-hover:text-black" />
{{ $t('labels.jsonFile') }} {{ $t('labels.jsonFile') }}
</NcMenuItem> </NcMenuItem>
</template>
<NcMenuItem <template v-if="isUIAllowed('excelImport', { roles: baseRole })" v-e="['c:import:excel']">
v-if="isUIAllowed('excelImport', { roles: baseRole })" <NcMenuItem key="quick-import-excel" @click="openQuickImportDialog('excel')">
key="quick-import-excel"
v-e="['c:import:excel']"
@click="openQuickImportDialog('excel')"
>
<GeneralIcon icon="excel" class="max-w-4 group-hover:text-black" /> <GeneralIcon icon="excel" class="max-w-4 group-hover:text-black" />
{{ $t('labels.microsoftExcel') }} {{ $t('labels.microsoftExcel') }}
</NcMenuItem> </NcMenuItem>
</template>
</NcSubMenu> </NcSubMenu>
</template> </template>

Loading…
Cancel
Save