mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
Add Docker top feature
This commit is contained in:
parent
c971189286
commit
ede37e2e79
8 changed files with 307 additions and 182 deletions
19
app/components/containerTop/containerTopController.js
Normal file
19
app/components/containerTop/containerTopController.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
angular.module('containerTop', [])
|
||||
.controller('ContainerTopController', ['$scope', '$routeParams', 'ContainerTop', 'ViewSpinner', function ($scope, $routeParams, ContainerTop, ViewSpinner) {
|
||||
$scope.ps_args = '';
|
||||
|
||||
/**
|
||||
* Get container processes
|
||||
*/
|
||||
$scope.getTop = function () {
|
||||
ViewSpinner.spin();
|
||||
ContainerTop.get($routeParams.id, {
|
||||
ps_args: $scope.ps_args
|
||||
}, function (data) {
|
||||
$scope.containerTop = data;
|
||||
ViewSpinner.stop();
|
||||
});
|
||||
};
|
||||
|
||||
$scope.getTop();
|
||||
}]);
|
Loading…
Add table
Add a link
Reference in a new issue