Ver código fonte

HUE-8720 [importer] Fix importer with custom separator

(cherry picked from commit a3f50f7edd8e4d9c3004227cb33dbff5adac9757)

Change-Id: Ie9957debbb240ea4b8e7d207cc62f5883791db83
jdesjean 6 anos atrás
pai
commit
cd15cf5cbf

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

@@ -1581,6 +1581,16 @@ ${ assist.assistPanel() }
           if (args) {
           if (args) {
             loadFromObj(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
         }
         }
       };
       };