mirror of
https://github.com/portainer/portainer.git
synced 2025-08-08 07:15:23 +02:00
feat(datatables): auto refresh on datatables (#2974)
* feat(datatables): auto refresh on datatables * feat(datatables): auto refresh implementation on docker related resources
This commit is contained in:
parent
cc487ae68a
commit
03c82cac69
51 changed files with 577 additions and 29 deletions
|
@ -17,6 +17,7 @@
|
|||
show-host-column="applicationState.endpoint.mode.agentProxy && applicationState.endpoint.mode.provider === 'DOCKER_SWARM_MODE'"
|
||||
show-add-action="true"
|
||||
offline-mode="offlineMode"
|
||||
refresh-callback="getContainers"
|
||||
></containers-datatable>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -4,7 +4,9 @@ function ($scope, ContainerService, Notifications, EndpointProvider) {
|
|||
|
||||
$scope.offlineMode = false;
|
||||
|
||||
function initView() {
|
||||
$scope.getContainers = getContainers;
|
||||
|
||||
function getContainers() {
|
||||
ContainerService.containers(1)
|
||||
.then(function success(data) {
|
||||
$scope.containers = data;
|
||||
|
@ -16,5 +18,9 @@ function ($scope, ContainerService, Notifications, EndpointProvider) {
|
|||
});
|
||||
}
|
||||
|
||||
function initView() {
|
||||
getContainers();
|
||||
}
|
||||
|
||||
initView();
|
||||
}]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue