mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Enables cloud credential lookup modal
This commit is contained in:
@@ -76,6 +76,7 @@ export default
|
|||||||
ngShow: "source && source.value !== '' && source.value !== 'custom'",
|
ngShow: "source && source.value !== '' && source.value !== 'custom'",
|
||||||
sourceModel: 'credential',
|
sourceModel: 'credential',
|
||||||
sourceField: 'name',
|
sourceField: 'name',
|
||||||
|
ngClick: 'lookupCredential()',
|
||||||
awRequiredWhen: {
|
awRequiredWhen: {
|
||||||
reqExpression: "cloudCredentialRequired",
|
reqExpression: "cloudCredentialRequired",
|
||||||
init: "false"
|
init: "false"
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ export default ['$state', '$stateParams', '$scope', 'GroupForm', 'CredentialList
|
|||||||
}
|
}
|
||||||
|
|
||||||
$scope.lookupCredential = function(){
|
$scope.lookupCredential = function(){
|
||||||
$state.go('.lookup.credential', {
|
$state.go('.credential', {
|
||||||
credential_search: {
|
credential_search: {
|
||||||
kind: $scope.source.value,
|
kind: $scope.source.value,
|
||||||
page_size: '5',
|
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() {
|
$scope.formCancel = function() {
|
||||||
$state.go('^');
|
$state.go('^');
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user