Эх сурвалжийг харах

HUE-5881 [importer] Guessing the format of a file crashes IE11

Enrico Berti 8 жил өмнө
parent
commit
97b71c3

+ 3 - 8
desktop/libs/indexer/src/indexer/templates/importer.mako

@@ -435,7 +435,9 @@ ${ assist.assistPanel() }
           <select data-bind="selectize: $root.createWizard.fileTypes, value: $root.createWizard.fileTypeName, optionsText: 'description', optionsValue: 'name'"></select>
         </label>
         <span class="inline-labels" data-bind="with: createWizard.source.format, visible: createWizard.source.show">
-          <!-- ko template: {name: 'format-settings'} --> <!-- /ko -->
+          <span data-bind="foreach: getArguments()">
+            <!-- ko template: {name: 'arg-' + $data.type, data:{description: $data.description, value: $parent[$data.name]}}--><!-- /ko -->
+          </span>
         </span>
       </div>
       <!-- /ko -->
@@ -759,13 +761,6 @@ ${ assist.assistPanel() }
 </script>
 
 
-<script type="text/html" id="format-settings">
-  <!-- ko foreach: {data: getArguments(), as: 'argument'} -->
-    <!-- ko template: {name: 'arg-' + argument.type, data:{description: argument.description, value: $parent[argument.name]}}--><!-- /ko -->
-  <!-- /ko -->
-</script>
-
-
 <script type="text/html" id="table-field-template">
   <div>
     <label data-bind="visible: level() == 0 || ($parent.type() != 'array' && $parent.type() != 'map')">${ _('Name') }&nbsp;