Browse Source

Merge pull request #6127 from briankinney/import-at-users-option

Import Airtable users option
pull/6177/head
աɨռɢӄաօռɢ 1 year ago committed by GitHub
parent
commit
ea6bf8792b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      packages/nc-gui/components/dlg/AirtableImport.vue
  2. 1
      packages/nc-gui/lang/en.json
  3. 10
      packages/nocodb/src/modules/jobs/jobs/at-import/at-import.processor.ts

9
packages/nc-gui/components/dlg/AirtableImport.vue

@ -64,6 +64,7 @@ const syncSource = ref({
syncLookup: true,
syncFormula: false,
syncAttachment: true,
syncUsers: true,
},
},
})
@ -174,6 +175,7 @@ async function loadSyncSrc() {
syncLookup: true,
syncFormula: false,
syncAttachment: true,
syncUsers: true,
},
},
}
@ -334,6 +336,13 @@ onMounted(async () => {
</a-checkbox>
</div>
<!-- Import Users Columns -->
<div class="my-2">
<a-checkbox v-model:checked="syncSource.details.options.syncUsers">
{{ $t('labels.importUsers') }}
</a-checkbox>
</div>
<!-- Import Formula Columns -->
<a-tooltip placement="top">
<template #title>

1
packages/nc-gui/lang/en.json

@ -312,6 +312,7 @@
"importLookupColumns": "Import Lookup Columns",
"importAttachmentColumns": "Import Attachment Columns",
"importFormulaColumns": "Import Formula Columns",
"importUsers": "Import Users (by email)",
"noData": "No Data",
"goToDashboard": "Go to Dashboard",
"importing": "Importing",

10
packages/nocodb/src/modules/jobs/jobs/at-import/at-import.processor.ts

@ -2289,10 +2289,12 @@ export class AtImportProcessor {
await nocoSetPrimary(aTblSchema);
logDetailed('Configuring Display Value column completed');
logBasic('Configuring User(s)');
// add users
await nocoAddUsers(schema);
logDetailed('Adding users completed');
if (syncDB.options.syncUsers) {
logBasic('Configuring User(s)');
// add users
await nocoAddUsers(schema);
logDetailed('Adding users completed');
}
// hide-fields
// await nocoReconfigureFields(aTblSchema);

Loading…
Cancel
Save