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