Browse Source

feat(nc-gui): disable advanced setting options when importDataOnly is true

pull/4135/head
Wing-Kam Wong 2 years ago
parent
commit
4d79f69f8d
  1. 6
      packages/nc-gui/components/dlg/QuickImport.vue

6
packages/nc-gui/components/dlg/QuickImport.vue

@ -427,13 +427,13 @@ const beforeUpload = (file: UploadFile) => {
<a-input-number v-model:value="importState.parserConfig.maxRowsToParse" :min="1" :max="50000" />
</a-form-item>
<a-form-item class="!my-2">
<a-form-item v-if="!importDataOnly" class="!my-2">
<a-checkbox v-model:checked="importState.parserConfig.autoSelectFieldTypes">
<span class="caption">Auto-Select Field Types</span>
</a-checkbox>
</a-form-item>
<a-form-item v-if="isImportTypeCsv" class="!my-2">
<a-form-item v-if="isImportTypeCsv && !importDataOnly" class="!my-2">
<a-checkbox v-model:checked="importState.parserConfig.firstRowAsHeaders">
<span class="caption">Use First Row as Headers</span>
</a-checkbox>
@ -447,7 +447,7 @@ const beforeUpload = (file: UploadFile) => {
</a-form-item>
<!-- Import Data -->
<a-form-item class="!my-2">
<a-form-item v-if="!importDataOnly" class="!my-2">
<a-checkbox v-model:checked="importState.parserConfig.shouldImportData">{{ $t('labels.importData') }}</a-checkbox>
</a-form-item>
</div>

Loading…
Cancel
Save