瀏覽代碼

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

Romain Rigaux 7 年之前
父節點
當前提交
e7512c15fd
共有 1 個文件被更改,包括 7 次插入0 次删除
  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() {