Browse Source

HUE-8208 [importer] Default table destination name to topic name by default

Romain Rigaux 7 years ago
parent
commit
e7512c15fd
1 changed files with 7 additions and 0 deletions
  1. 7 0
      desktop/libs/indexer/src/indexer/templates/importer.mako

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

@@ -1606,6 +1606,13 @@ ${ assist.assistPanel() }
           if (newValue == 'kafka') {
           if (newValue == 'kafka') {
             wizard.destination.tableFormat('kudu');
             wizard.destination.tableFormat('kudu');
           }
           }
+          if (wizard.destination.outputFormat() == 'table') {
+            if (self.streamSelection() == 'kafka') {
+              wizard.destination.name(self.kafkaSelectedTopics());
+            } else {
+              wizard.destination.name(self.streamSelection());
+            }
+          }
         }
         }
       });
       });
       self.streamCheckConnection = function() {
       self.streamCheckConnection = function() {