mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
Fixed various bugs with the select dropdown
This commit is contained in:
@@ -210,7 +210,7 @@ export default
|
|||||||
$scope.selected_credentials.machine = angular.copy($scope.defaults.credential);
|
$scope.selected_credentials.machine = angular.copy($scope.defaults.credential);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($scope.has_default_extra_credentials) {
|
if($scope.ask_extra_credentials_on_launch) {
|
||||||
// Go out and get the credential types
|
// Go out and get the credential types
|
||||||
Rest.setUrl(GetBasePath('credential_types'));
|
Rest.setUrl(GetBasePath('credential_types'));
|
||||||
Rest.get()
|
Rest.get()
|
||||||
@@ -219,13 +219,17 @@ export default
|
|||||||
$scope.credentialKindOptions = [];
|
$scope.credentialKindOptions = [];
|
||||||
credentialTypeData.results.forEach((credentialType => {
|
credentialTypeData.results.forEach((credentialType => {
|
||||||
credential_types[credentialType.id] = credentialType;
|
credential_types[credentialType.id] = credentialType;
|
||||||
$scope.credentialKindOptions.push({
|
if($scope.ask_credential_on_launch || (!$scope.ask_credential_on_launch && credentialType.id !== 1)) {
|
||||||
name: credentialType.name,
|
$scope.credentialKindOptions.push({
|
||||||
value: credentialType.id
|
name: credentialType.name,
|
||||||
});
|
value: credentialType.id
|
||||||
|
});
|
||||||
|
}
|
||||||
}));
|
}));
|
||||||
$scope.credential_types = credential_types;
|
$scope.credential_types = credential_types;
|
||||||
$scope.selected_credentials.extra = angular.copy($scope.defaults.extra_credentials);
|
if($scope.has_default_extra_credentials) {
|
||||||
|
$scope.selected_credentials.extra = angular.copy($scope.defaults.extra_credentials);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ export default [ 'templateUrl', 'CreateDialog', 'Wait', 'CreateSelect2', 'ParseT
|
|||||||
scope.includeInventoryList = true;
|
scope.includeInventoryList = true;
|
||||||
}
|
}
|
||||||
if(scope.ask_credential_on_launch || scope.ask_extra_credentials_on_launch) {
|
if(scope.ask_credential_on_launch || scope.ask_extra_credentials_on_launch) {
|
||||||
scope.credentialKind = (scope.ask_credential_on_launch) ? "1" : "1";
|
scope.credentialKind = (scope.ask_credential_on_launch) ? "1" : "5";
|
||||||
|
|
||||||
scope.includeCredentialList = true;
|
scope.includeCredentialList = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<div class="JobSubmission-stepsContainer">
|
<div class="JobSubmission-stepsContainer">
|
||||||
<div class="JobSubmission-steps">
|
<div class="JobSubmission-steps">
|
||||||
<div class="JobSubmission-step" ng-class="{'JobSubmission-step--active': step==='inventory'}" ng-if="ask_inventory_on_launch" ng-click="setStep('inventory')" translate>Inventory</div>
|
<div class="JobSubmission-step" ng-class="{'JobSubmission-step--active': step==='inventory'}" ng-if="ask_inventory_on_launch" ng-click="setStep('inventory')" translate>Inventory</div>
|
||||||
<div class="JobSubmission-step" ng-class="{'JobSubmission-step--active': step==='credential', 'JobSubmission-step--disabled': !credentialTabEnabled}" ng-if="ask_credential_on_launch || password_needed" ng-click="!credentialTabEnabled || setStep('credential')" translate>Credential</div>
|
<div class="JobSubmission-step" ng-class="{'JobSubmission-step--active': step==='credential', 'JobSubmission-step--disabled': !credentialTabEnabled}" ng-if="ask_credential_on_launch || ask_extra_credentials_on_launch || password_needed" ng-click="!credentialTabEnabled || setStep('credential')" translate>Credential</div>
|
||||||
<div class="JobSubmission-step" ng-class="{'JobSubmission-step--active': step==='otherprompts', 'JobSubmission-step--disabled': !otherPromptsTabEnabled}" ng-if="has_other_prompts" ng-click="!otherPromptsTabEnabled || setStep('otherprompts')" translate>Other Prompts</div>
|
<div class="JobSubmission-step" ng-class="{'JobSubmission-step--active': step==='otherprompts', 'JobSubmission-step--disabled': !otherPromptsTabEnabled}" ng-if="has_other_prompts" ng-click="!otherPromptsTabEnabled || setStep('otherprompts')" translate>Other Prompts</div>
|
||||||
<div class="JobSubmission-step" ng-class="{'JobSubmission-step--active': step==='survey', 'JobSubmission-step--disabled': !surveyTabEnabled}" ng-if="survey_enabled" ng-click="!surveyTabEnabled || setStep('survey')" translate>Survey</div>
|
<div class="JobSubmission-step" ng-class="{'JobSubmission-step--active': step==='survey', 'JobSubmission-step--disabled': !surveyTabEnabled}" ng-if="survey_enabled" ng-click="!surveyTabEnabled || setStep('survey')" translate>Survey</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
<job-sub-inv-list ng-if="includeInventoryList" selected-inventory="$parent.selected_inventory"></job-sub-inv-list>
|
<job-sub-inv-list ng-if="includeInventoryList" selected-inventory="$parent.selected_inventory"></job-sub-inv-list>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div ng-if="ask_credential_on_launch || password_needed" ng-show="step === 'credential'" class="JobSubmission-form">
|
<div ng-if="ask_credential_on_launch || ask_extra_credentials_on_launch || password_needed" ng-show="step === 'credential'" class="JobSubmission-form">
|
||||||
<div class="JobSubmission-selectedItemContainer">
|
<div class="JobSubmission-selectedItemContainer">
|
||||||
<div class="JobSubmission-selectedItem">
|
<div class="JobSubmission-selectedItem">
|
||||||
<div class="JobSubmission-selectedItemInfo">
|
<div class="JobSubmission-selectedItemInfo">
|
||||||
|
|||||||
Reference in New Issue
Block a user