Browse Source

HUE-8208 [importer] Add title to step 1 when importing from a stream

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

+ 12 - 1
desktop/libs/indexer/src/indexer/templates/importer.mako

@@ -165,7 +165,18 @@ ${ assist.assistPanel() }
           </div>
           </div>
           <div class="caption">
           <div class="caption">
             <!-- ko if: createWizard.source.inputFormat() != 'manual' -->
             <!-- ko if: createWizard.source.inputFormat() != 'manual' -->
-            ${ _('Pick data from ') }<span data-bind="text: createWizard.source.inputFormat"></span> <span data-bind="text: createWizard.source.path"></span>
+              ${ _('Pick data from ') }<span data-bind="text: createWizard.source.inputFormat"></span>
+              <!-- ko if: createWizard.source.inputFormat() == 'file' -->
+                <span data-bind="text: createWizard.source.path"></span>
+              <!-- /ko -->
+              <!-- ko if: createWizard.source.inputFormat() == 'stream' -->
+                <!-- ko if: createWizard.source.streamSelection() == 'kafka' -->
+                  <span data-bind="text: createWizard.source.kafkaSelectedTopics"></span>
+                <!-- /ko -->
+                <!-- ko if: createWizard.source.streamSelection() != 'kafka' -->
+                  <span data-bind="text: createWizard.source.streamSelection"></span>
+                <!-- /ko -->
+              <!-- /ko -->
             <!-- /ko -->
             <!-- /ko -->
             <!-- ko if: createWizard.source.inputFormat() == 'manual' -->
             <!-- ko if: createWizard.source.inputFormat() == 'manual' -->
             ${ _('No source data') }
             ${ _('No source data') }