Skip to content

Commit

Permalink
adds compute selection in importer destination
Browse files Browse the repository at this point in the history
  • Loading branch information
ramprasadagarwal committed Oct 1, 2024
1 parent ce781c6 commit 7eec173
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions desktop/libs/indexer/src/indexer/templates/importer.mako
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,14 @@ ${ commonheader(_("Importer"), "indexer", user, request, "60px") | n,unicode }
<i class="fa fa-warning" style="color: #c09853"></i> ${ _('Does not exist') } <span data-bind="text: outputFormat"></span>
</span>
</div>
<!-- ko if: namespace().computes.length > 1 -->
<div class="control-group">
<label for="computeName" class="control-label"><div>${ _('Compute') }</div>
<select id="computeName" data-bind="selectize: namespace().computes, value: $parent.createWizard.source.selectedComputeId, optionsValue: 'name', optionsText: 'name'"></select>
</label>
</div>
<!-- /ko -->
</div>
</div>
Expand Down Expand Up @@ -1704,6 +1712,14 @@ ${ commonheader(_("Importer"), "indexer", user, request, "60px") | n,unicode }
self.sampleCols = ko.observableArray();
self.namespace = wizard.namespace;
self.compute = wizard.compute;
self.selectedComputeId = ko.observable();
self.selectedComputeId.subscribe(function (abc) {
var selectedCompute = self.namespace().computes.find(function (currCompute) {
return currCompute.name == self.selectedComputeId();
})
self.compute(selectedCompute);
});
var refreshThrottle = -1;
var sampleColSubDisposals = [];
Expand Down

0 comments on commit 7eec173

Please sign in to comment.