diff --git a/awx/ui/client/src/access/add-rbac-resource/rbac-resource.controller.js b/awx/ui/client/src/access/add-rbac-resource/rbac-resource.controller.js index f283399998..f43226537c 100644 --- a/awx/ui/client/src/access/add-rbac-resource/rbac-resource.controller.js +++ b/awx/ui/client/src/access/add-rbac-resource/rbac-resource.controller.js @@ -88,7 +88,7 @@ export default ['$rootScope', '$scope', 'GetBasePath', 'Rest', '$q', 'Wait', 'Pr scope.showKeyPane = !scope.showKeyPane; }; - scope.showSection2Container = function(){ + scope.hasSelectedRows = function(){ return _.any(scope.allSelected, (type) => Object.keys(type).length > 0); }; diff --git a/awx/ui/client/src/access/add-rbac-resource/rbac-resource.partial.html b/awx/ui/client/src/access/add-rbac-resource/rbac-resource.partial.html index 6ea6bb18a5..a01030455b 100644 --- a/awx/ui/client/src/access/add-rbac-resource/rbac-resource.partial.html +++ b/awx/ui/client/src/access/add-rbac-resource/rbac-resource.partial.html @@ -51,7 +51,7 @@ - + @@ -110,7 +110,7 @@ + ng-disabled="userRoleForm.$invalid || !allSelected || !hasSelectedRows()" translate> Save