feat(app/containers): display IP (#4435)

pull/4794/head
Alice Groux 4 years ago committed by GitHub
parent 05ba00a8f7
commit a62e0496de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -176,6 +176,13 @@
Created Created
</a> </a>
</th> </th>
<th ng-show="$ctrl.columnVisibility.columns.ip.display">
<a ng-click="$ctrl.changeOrderBy('IP')">
IP Address
<i class="fa fa-sort-alpha-down" aria-hidden="true" ng-if="$ctrl.state.orderBy === 'IP' && !$ctrl.state.reverseOrder"></i>
<i class="fa fa-sort-alpha-up" aria-hidden="true" ng-if="$ctrl.state.orderBy === 'IP' && $ctrl.state.reverseOrder"></i>
</a>
</th>
<th ng-if="$ctrl.showHostColumn" ng-show="$ctrl.columnVisibility.columns.host.display"> <th ng-if="$ctrl.showHostColumn" ng-show="$ctrl.columnVisibility.columns.host.display">
<a ng-click="$ctrl.changeOrderBy('NodeName')"> <a ng-click="$ctrl.changeOrderBy('NodeName')">
Host Host
@ -250,6 +257,7 @@
<td ng-show="$ctrl.columnVisibility.columns.created.display"> <td ng-show="$ctrl.columnVisibility.columns.created.display">
{{ item.Created | getisodatefromtimestamp }} {{ item.Created | getisodatefromtimestamp }}
</td> </td>
<td ng-show="$ctrl.columnVisibility.columns.ip.display">{{ item.IP ? item.IP : '-' }}</td>
<td ng-if="$ctrl.showHostColumn" ng-show="$ctrl.columnVisibility.columns.host.display">{{ item.NodeName ? item.NodeName : '-' }}</td> <td ng-if="$ctrl.showHostColumn" ng-show="$ctrl.columnVisibility.columns.host.display">{{ item.NodeName ? item.NodeName : '-' }}</td>
<td ng-show="$ctrl.columnVisibility.columns.ports.display"> <td ng-show="$ctrl.columnVisibility.columns.ports.display">
<a <a

@ -57,6 +57,10 @@ angular.module('portainer.docker').controller('ContainersDatatableController', [
label: 'Created', label: 'Created',
display: true, display: true,
}, },
ip: {
label: 'IP Address',
display: true,
},
host: { host: {
label: 'Host', label: 'Host',
display: true, display: true,

Loading…
Cancel
Save