浏览代码

HUE-8720 [importer] Fix importer with custom separator

jdesjean 6 年之前
父节点
当前提交
a3f50f7edd
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      desktop/libs/indexer/src/indexer/templates/importer.mako

+ 10 - 0
desktop/libs/indexer/src/indexer/templates/importer.mako

@@ -1569,6 +1569,16 @@ ${ assist.assistPanel() }
           if (args) {
             loadFromObj(args);
           }
+
+          setTimeout(function () {
+            var types = type.args.filter(function(x){ return x && x.type !== 'checkbox'});
+            for (var i = 0; i < types.length; i++) {
+              self[types[i].name].subscribe(function() {
+                // Update the data preview when tweaking Format options on step 1
+                viewModel.createWizard.guessFieldTypes();
+              });
+            }
+          }); // Prevent notification on start
         }
       };