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:
parent
5652ad0062
commit
fe7f0e8d09
@ -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);
|
||||
};
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user