Browse Source

[importer_direct_upload] applying if else condition for default source type

ayush.goyal 4 years ago
parent
commit
115a13953f
1 changed files with 5 additions and 1 deletions
  1. 5 1
      desktop/libs/indexer/src/indexer/templates/importer.mako

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

@@ -1726,7 +1726,11 @@ ${ commonheader(_("Importer"), "indexer", user, request, "60px") | n,unicode }
 
 
       self.sampleCols.subscribe(refreshTemporaryTable);
-      self.inputFormat = ko.observable(wizard.prefill.source_type() ? wizard.prefill.source_type() : 'localfile');
+      % if ENABLE_DIRECT_UPLOAD.get():
+        self.inputFormat = ko.observable(wizard.prefill.source_type() ? wizard.prefill.source_type() : 'localfile');
+      % else:
+        self.inputFormat = ko.observable(wizard.prefill.source_type() ? wizard.prefill.source_type() : 'file');
+      % endif
 
       self.inputFormat.subscribe(function(val) {
         wizard.destination.columns.removeAll();