UNPKG

@spotinst/spinnaker-deck

Version:

Spinnaker-Deck service, forked with support to Spotinst

44 lines (43 loc) 1.35 kB
<stage-config-field label="Account"> <account-select-field component="vm.component" field="credentials" accounts="vm.accounts" provider="'aws'" on-change="vm.accountUpdated()" required > </account-select-field> </stage-config-field> <stage-config-field label="{{ vm.singleRegion ? 'Region' : 'Regions' }}"> <p ng-if="!vm.component.credentials" class="form-control-static">(Select an Account)</p> <select class="form-control input-sm" ng-if="vm.component.credentials && vm.singleRegion" ng-model="vm.component.region" ng-change="vm.regionChanged()" ng-disabled="vm.disableRegionSelect" ng-options="region for region in vm.regions" required ></select> <checklist ng-if="vm.component.credentials && !vm.singleRegion" items="vm.regions" model="vm.component.regions" inline="true" on-change="vm.regionChanged()" include-select-all-button="true" > </checklist> </stage-config-field> <div ng-if="vm.showClusterSelect"> <stage-config-field label="Cluster" help-key="pipeline.config.findAmi.cluster"> <cluster-selector clusters="vm.clusterList" model="vm.component[vm.clusterField]" toggled="vm.clusterSelectInputToggled(isToggled)" on-change="vm.clusterChanged(clusterName)" > </cluster-selector> </stage-config-field> </div>