fix(networks): patch datatable (#3557)

pull/3561/head
William 2020-02-13 08:41:41 +13:00 committed by GitHub
parent 0330b16776
commit eff1b79a4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -1,10 +1,11 @@
<td ng-if="allowCheckbox" authorization="DockerNetworkDelete, DockerNetworkCreate">
<span class="md-checkbox" ng-if="!parentCtrl.offlineMode">
<td ng-if="allowCheckbox">
<span class="md-checkbox" ng-if="!parentCtrl.offlineMode" authorization="DockerNetworkDelete, DockerNetworkCreate">
<input id="select_{{ $index }}" type="checkbox" ng-model="item.Checked" ng-click="parentCtrl.selectItem(item, $event); $event.stopPropagation()" ng-disabled="parentCtrl.disableRemove(item)"/>
<label for="select_{{ $index }}"></label>
</span>
<a ng-if="parentCtrl.itemCanExpand(item)"><i ng-class="{ 'fas fa-angle-down': item.Expanded, 'fas fa-angle-right': !item.Expanded }" class="space-right" aria-hidden="true"></i></a>
</td>
<td ng-if="!allowCheckbox"></td>
<td>
<a ng-if="!parentCtrl.offlineMode" ui-sref="docker.networks.network({ id: item.Id, nodeName: item.NodeName })" title="{{ item.Name }}">{{ item.Name | truncate:40 }}</a>
<span ng-if="parentCtrl.offlineMode">{{ item.Name | truncate:40 }}</span>

View File

@ -61,8 +61,8 @@
<table class="table table-hover nowrap-cells">
<thead>
<tr>
<th style="width:55px;" authorization="DockerNetworkDelete, DockerNetworkCreate">
<span class="md-checkbox" ng-if="!$ctrl.offlineMode">
<th style="width:55px;">
<span class="md-checkbox" ng-if="!$ctrl.offlineMode" authorization="DockerNetworkDelete, DockerNetworkCreate">
<input id="select_all" type="checkbox" ng-model="$ctrl.state.selectAll" ng-change="$ctrl.selectAll()" />
<label for="select_all"></label>
</span>