mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
Merge pull request #2692 from kialam/fix-2586-ldap-dropdown-fix
Fix LDAP and TACACS+ dropdowns Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
@@ -199,7 +199,6 @@ export default [
|
|||||||
name: 'ldap5'
|
name: 'ldap5'
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
var forms = _.map(authForms, 'formDef');
|
var forms = _.map(authForms, 'formDef');
|
||||||
_.each(forms, function(form) {
|
_.each(forms, function(form) {
|
||||||
var keys = _.keys(form.fields);
|
var keys = _.keys(form.fields);
|
||||||
@@ -207,9 +206,9 @@ export default [
|
|||||||
if($scope.configDataResolve[key].type === 'choice') {
|
if($scope.configDataResolve[key].type === 'choice') {
|
||||||
// Create options for dropdowns
|
// Create options for dropdowns
|
||||||
var optionsGroup = key + '_options';
|
var optionsGroup = key + '_options';
|
||||||
$scope.$parent[optionsGroup] = [];
|
$scope.$parent.$parent[optionsGroup] = [];
|
||||||
_.each($scope.configDataResolve[key].choices, function(choice){
|
_.each($scope.configDataResolve[key].choices, function(choice){
|
||||||
$scope.$parent[optionsGroup].push({
|
$scope.$parent.$parent[optionsGroup].push({
|
||||||
name: choice[0],
|
name: choice[0],
|
||||||
label: choice[1],
|
label: choice[1],
|
||||||
value: choice[0]
|
value: choice[0]
|
||||||
@@ -303,7 +302,7 @@ export default [
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($scope.$parent[groupPropName] !== null) {
|
if($scope.$parent[groupPropName] !== null) {
|
||||||
$scope.$parent[groupPropName] = _.find($scope[groupOptionsPropName], { value: $scope.$parent[groupPropName] });
|
$scope.$parent.$parent[groupPropName] = _.find($scope[groupOptionsPropName], { value: $scope.$parent[groupPropName] });
|
||||||
}
|
}
|
||||||
|
|
||||||
if(flag !== undefined){
|
if(flag !== undefined){
|
||||||
@@ -322,7 +321,7 @@ export default [
|
|||||||
|
|
||||||
function populateTacacsProtocol(flag){
|
function populateTacacsProtocol(flag){
|
||||||
if($scope.$parent.TACACSPLUS_AUTH_PROTOCOL !== null) {
|
if($scope.$parent.TACACSPLUS_AUTH_PROTOCOL !== null) {
|
||||||
$scope.$parent.TACACSPLUS_AUTH_PROTOCOL = _.find($scope.$parent.TACACSPLUS_AUTH_PROTOCOL_options, { value: $scope.$parent.TACACSPLUS_AUTH_PROTOCOL });
|
$scope.$parent.$parent.TACACSPLUS_AUTH_PROTOCOL = _.find($scope.$parent.TACACSPLUS_AUTH_PROTOCOL_options, { value: $scope.$parent.TACACSPLUS_AUTH_PROTOCOL });
|
||||||
}
|
}
|
||||||
|
|
||||||
if(flag !== undefined){
|
if(flag !== undefined){
|
||||||
|
|||||||
@@ -35,7 +35,9 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0 0 22px auto;
|
margin: 0 0 22px auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-start;
|
||||||
|
border-bottom: 1px solid @at-gray-b7;
|
||||||
|
padding-bottom: 22px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Form-nav--ldapDropdownContainer {
|
.Form-nav--ldapDropdownContainer {
|
||||||
|
|||||||
Reference in New Issue
Block a user