mirror of https://github.com/portainer/portainer
fix(swarm): fix an issue when trying to access node view (#650)
parent
08868eb3e0
commit
22c02a8fe9
|
@ -215,7 +215,7 @@
|
|||
</thead>
|
||||
<tbody>
|
||||
<tr dir-paginate="node in (state.filteredNodes = (nodes | filter:state.filter | orderBy:sortType:sortReverse | itemsPerPage: state.pagination_count))">
|
||||
<td><a ui-sref="node({id: node.ID})">{{ node.Hostname }}</a></td>
|
||||
<td><a ui-sref="node({id: node.Id})">{{ node.Hostname }}</a></td>
|
||||
<td>{{ node.Role }}</td>
|
||||
<td>{{ node.CPUs / 1000000000 }}</td>
|
||||
<td>{{ node.Memory|humansize }}</td>
|
||||
|
|
|
@ -75,7 +75,7 @@ function ($scope, Info, Version, Node, Pagination) {
|
|||
var node = {};
|
||||
node.name = info[offset][0];
|
||||
node.ip = info[offset][1];
|
||||
node.id = info[offset + 1][1];
|
||||
node.Id = info[offset + 1][1];
|
||||
node.status = info[offset + 2][1];
|
||||
node.containers = info[offset + 3][1];
|
||||
node.cpu = info[offset + 4][1].split('/')[1];
|
||||
|
|
Loading…
Reference in New Issue