mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 04:31:21 -03:30
Updates PR and Addresses Console Error
THis commit imroves conditional rendering of the container groups form for System Auditors. It also removes a ng-class condition in the IG list that was unused.
This commit is contained in:
parent
5cf84ddb60
commit
4134d0b516
@ -52,12 +52,6 @@
|
||||
height: calc(~"100vh - 80px");
|
||||
}
|
||||
|
||||
textarea[disabled] + div .CodeMirror-code{
|
||||
background-color: #ebebeb;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
|
||||
@media screen and (min-width: 768px){
|
||||
.NetworkingExtraVars .modal-dialog{
|
||||
width: 700px;
|
||||
|
||||
@ -4,7 +4,10 @@ function EditContainerGroupController($rootScope, $scope, $state, models, string
|
||||
instanceGroup,
|
||||
credential
|
||||
} = models;
|
||||
const canEdit = instanceGroup.model.OPTIONS.actions.PUT;
|
||||
let canEdit = false;
|
||||
if (instanceGroup.has('options', 'actions.PUT')) {
|
||||
canEdit = instanceGroup.model.OPTIONS.actions.PUT;
|
||||
}
|
||||
if (!instanceGroup.get('is_containerized')) {
|
||||
return $state.go(
|
||||
'instanceGroups.edit',
|
||||
|
||||
@ -101,7 +101,7 @@
|
||||
</div>
|
||||
<div class="at-Row-actions" >
|
||||
<capacity-bar ng-show="!instance_group.credential" label-value="{{:: vm.strings.get('list.ROW_ITEM_LABEL_USED_CAPACITY') }}" capacity="instance_group.consumed_capacity" total-capacity="instance_group.capacity"></capacity-bar>
|
||||
<at-row-action ng-class="{'at-Row-actions-noCredential': !instance_group.credential}" icon="fa-trash" ng-click="vm.deleteInstanceGroup(instance_group)" ng-if="vm.rowAction.trash(instance_group)">
|
||||
<at-row-action icon="fa-trash" ng-click="vm.deleteInstanceGroup(instance_group)" ng-if="vm.rowAction.trash(instance_group)">
|
||||
</at-row-action>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user