mirror of https://github.com/portainer/portainer
feat(host-info): add different urls for refresh
parent
e09f653155
commit
db0fc1382d
|
@ -1,6 +1,6 @@
|
||||||
<rd-header>
|
<rd-header>
|
||||||
<rd-header-title title-text="Host overview">
|
<rd-header-title title-text="Host overview">
|
||||||
<a data-toggle="tooltip" title="Refresh" ui-sref="docker.host" ui-sref-opts="{reload: true}">
|
<a data-toggle="tooltip" title="Refresh" ui-sref="{{$ctrl.refreshUrl}}" ui-sref-opts="{reload: true}">
|
||||||
<i class="fa fa-sync" aria-hidden="true"></i>
|
<i class="fa fa-sync" aria-hidden="true"></i>
|
||||||
</a>
|
</a>
|
||||||
</rd-header-title>
|
</rd-header-title>
|
||||||
|
|
|
@ -4,8 +4,8 @@ angular.module('portainer.docker').component('hostOverview', {
|
||||||
bindings: {
|
bindings: {
|
||||||
hostDetails: '<',
|
hostDetails: '<',
|
||||||
engineDetails: '<',
|
engineDetails: '<',
|
||||||
nodeDetails: '<',
|
isAgent: '<',
|
||||||
isAgent: '<'
|
refreshUrl: '@'
|
||||||
},
|
},
|
||||||
transclude: true
|
transclude: true
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<host-overview
|
<host-overview
|
||||||
engine-details="$ctrl.engineDetails"
|
engine-details="$ctrl.engineDetails"
|
||||||
host-details="$ctrl.hostDetails"
|
host-details="$ctrl.hostDetails"
|
||||||
|
refresh-url="docker.host"
|
||||||
></host-overview>
|
></host-overview>
|
|
@ -2,6 +2,7 @@
|
||||||
is-agent="$ctrl.state.isAgent"
|
is-agent="$ctrl.state.isAgent"
|
||||||
host-details="$ctrl.hostDetails"
|
host-details="$ctrl.hostDetails"
|
||||||
engine-details="$ctrl.engineDetails"
|
engine-details="$ctrl.engineDetails"
|
||||||
|
refresh-url="docker.nodes.node"
|
||||||
>
|
>
|
||||||
<swarm-node-details-panel
|
<swarm-node-details-panel
|
||||||
details="$ctrl.nodeDetails"
|
details="$ctrl.nodeDetails"
|
||||||
|
|
Loading…
Reference in New Issue