mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 20:30:46 -03:30
Enables cloud credential lookup modal
This commit is contained in:
parent
793ce37a07
commit
f5ba29ba46
@ -76,6 +76,7 @@ export default
|
||||
ngShow: "source && source.value !== '' && source.value !== 'custom'",
|
||||
sourceModel: 'credential',
|
||||
sourceField: 'name',
|
||||
ngClick: 'lookupCredential()',
|
||||
awRequiredWhen: {
|
||||
reqExpression: "cloudCredentialRequired",
|
||||
init: "false"
|
||||
|
||||
@ -31,7 +31,7 @@ export default ['$state', '$stateParams', '$scope', 'GroupForm', 'CredentialList
|
||||
}
|
||||
|
||||
$scope.lookupCredential = function(){
|
||||
$state.go('.lookup.credential', {
|
||||
$state.go('.credential', {
|
||||
credential_search: {
|
||||
kind: $scope.source.value,
|
||||
page_size: '5',
|
||||
|
||||
@ -57,6 +57,16 @@ export default ['$state', '$stateParams', '$scope', 'ToggleNotification', 'Parse
|
||||
});
|
||||
};
|
||||
|
||||
$scope.lookupCredential = function(){
|
||||
$state.go('.credential', {
|
||||
credential_search: {
|
||||
kind: $scope.source.value,
|
||||
page_size: '5',
|
||||
page: '1'
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
$scope.formCancel = function() {
|
||||
$state.go('^');
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user