Enables cloud credential lookup modal

This commit is contained in:
Leigh Johnson 2016-11-02 19:45:20 -04:00
parent 793ce37a07
commit f5ba29ba46
3 changed files with 12 additions and 1 deletions

View File

@ -76,6 +76,7 @@ export default
ngShow: "source && source.value !== '' && source.value !== 'custom'",
sourceModel: 'credential',
sourceField: 'name',
ngClick: 'lookupCredential()',
awRequiredWhen: {
reqExpression: "cloudCredentialRequired",
init: "false"

View File

@ -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',

View File

@ -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('^');
};