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
|
@ -20,6 +20,7 @@
|
|||
show-task-logs-button="applicationState.endpoint.apiVersion >= 1.30"
|
||||
show-add-action="true"
|
||||
show-stack-column="true"
|
||||
refresh-callback="getServices"
|
||||
></services-datatable>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -2,7 +2,8 @@ angular.module('portainer.docker')
|
|||
.controller('ServicesController', ['$q', '$scope', 'ServiceService', 'ServiceHelper', 'Notifications', 'TaskService', 'TaskHelper', 'NodeService', 'ContainerService',
|
||||
function ($q, $scope, ServiceService, ServiceHelper, Notifications, TaskService, TaskHelper, NodeService, ContainerService) {
|
||||
|
||||
function initView() {
|
||||
$scope.getServices = getServices;
|
||||
function getServices() {
|
||||
var agentProxy = $scope.applicationState.endpoint.mode.agentProxy;
|
||||
|
||||
$q.all({
|
||||
|
@ -38,5 +39,9 @@ function ($q, $scope, ServiceService, ServiceHelper, Notifications, TaskService,
|
|||
});
|
||||
}
|
||||
|
||||
function initView() {
|
||||
getServices();
|
||||
}
|
||||
|
||||
initView();
|
||||
}]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue