deduping options request and possibly fixing choices of undefined error

This commit is contained in:
John Mitchell
2017-04-25 18:13:05 -04:00
parent 38c0c0a89b
commit 2b57027067
18 changed files with 41 additions and 46 deletions

View File

@@ -19,8 +19,8 @@ export default ['$scope', 'Rest', 'CredentialList', 'Prompt', 'ClearScope',
function init() {
rbacUiControlService.canAdd('credentials')
.then(function(canAdd) {
$scope.canAdd = canAdd;
.then(function(params) {
$scope.canAdd = params.canAdd;
});
// search init