[importer_direct_upload] removing the 'Type' bar if there is only a Table option
@@ -203,7 +203,7 @@ ${ commonheader(_("Importer"), "indexer", user, request, "60px") | n,unicode }
<h4>${_('Source')}</h4>
<div class="card-body">
<div>
- <div class="control-group" data-bind="visible: createWizard.prefill.target_type().length == 0 || createWizard.prefill.source_type() == 'all'">
+ <div class="control-group" data-bind="visible: ((createWizard.prefill.target_type().length == 0 || createWizard.prefill.source_type() == 'all') && createWizard.source.inputFormats().length > 1)">
<label for="sourceType" class="control-label"><div>${ _('Type') }</div>
<select id="sourceType" data-bind="selectize: createWizard.source.inputFormats, value: createWizard.source.inputFormat, optionsText: 'name', optionsValue: 'value'"></select>
</label>
@@ -533,7 +533,7 @@ ${ commonheader(_("Importer"), "indexer", user, request, "60px") | n,unicode }
<h4>${_('Destination')}</h4>
<div class="card-body">
<div class="control-group">
- <label for="destinationType" class="control-label" data-bind="visible: $parent.createWizard.prefill.target_type().length == 0"><div>${ _('Type') }</div>
+ <label for="destinationType" class="control-label" data-bind="visible: $parent.createWizard.prefill.target_type().length == 0 && outputFormats().length > 1"><div>${ _('Type') }</div>
<select id="destinationType" data-bind="selectize: outputFormats, value: outputFormat, optionsValue: 'value', optionsText: 'name'"></select>
</label>
</div>
