1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 23:51:09 +03:00

Changed showSelection2container to hasSelectedRows

This commit is contained in:
mabashian 2017-07-28 17:59:01 -04:00
parent 5652ad0062
commit fe7f0e8d09
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -51,7 +51,7 @@
<rbac-multiselect-list view="Teams" all-selected="allSelected" dataset="teamsDataset"></rbac-multiselect-list>
</div>
<span ng-show="showSection2Container()">
<span ng-show="hasSelectedRows()">
<div class="AddPermissions-separator"></div>
<div class="AddPermissions-directions">
<span class="AddPermissions-directionNumber">
@ -110,7 +110,7 @@
<button type="button"
class="btn btn-sm Form-saveButton"
ng-click="updatePermissions()"
ng-disabled="userRoleForm.$invalid || !allSelected || !showSection2Container()" translate>
ng-disabled="userRoleForm.$invalid || !allSelected || !hasSelectedRows()" translate>
Save
</button>
</div>