|
|
@ -14,8 +14,8 @@ const baseRole = inject(ProjectRoleInj) |
|
|
|
|
|
|
|
|
|
|
|
const { $e } = useNuxtApp() |
|
|
|
const { $e } = useNuxtApp() |
|
|
|
|
|
|
|
|
|
|
|
function openAirtableImportDialog(sourceId?: string) { |
|
|
|
function openAirtableImportDialog(baseId?: string, sourceId?: string) { |
|
|
|
if (!sourceId) return |
|
|
|
if (!baseId || !sourceId) return |
|
|
|
|
|
|
|
|
|
|
|
$e('a:actions:import-airtable') |
|
|
|
$e('a:actions:import-airtable') |
|
|
|
|
|
|
|
|
|
|
@ -23,6 +23,7 @@ function openAirtableImportDialog(sourceId?: string) { |
|
|
|
|
|
|
|
|
|
|
|
const { close } = useDialog(resolveComponent('DlgAirtableImport'), { |
|
|
|
const { close } = useDialog(resolveComponent('DlgAirtableImport'), { |
|
|
|
'modelValue': isOpen, |
|
|
|
'modelValue': isOpen, |
|
|
|
|
|
|
|
'baseId': baseId, |
|
|
|
'sourceId': sourceId, |
|
|
|
'sourceId': sourceId, |
|
|
|
'onUpdate:modelValue': closeDialog, |
|
|
|
'onUpdate:modelValue': closeDialog, |
|
|
|
}) |
|
|
|
}) |
|
|
@ -71,7 +72,7 @@ function openQuickImportDialog(type: string) { |
|
|
|
v-if="isUIAllowed('airtableImport', { roles: baseRole })" |
|
|
|
v-if="isUIAllowed('airtableImport', { roles: baseRole })" |
|
|
|
key="quick-import-airtable" |
|
|
|
key="quick-import-airtable" |
|
|
|
v-e="['c:import:airtable']" |
|
|
|
v-e="['c:import:airtable']" |
|
|
|
@click="openAirtableImportDialog(source.id)" |
|
|
|
@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> |
|
|
|