1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 06:49:40 +02:00

feat(container-inspect): add the ability to inspect containers

This commit is contained in:
G07cha 2017-10-17 09:56:40 +03:00 committed by Anthony Lapenna
parent 925326e8aa
commit 7eaaf9a2a7
7 changed files with 62 additions and 12 deletions

View file

@ -0,0 +1,20 @@
angular.module('containerInspect', [])
.controller('ContainerInspectController', ['$scope', '$transition$', 'Notifications', 'ContainerService',
function ($scope, $transition$, Notifications, ContainerService) {
function initView() {
$('#loadingViewSpinner').show();
ContainerService.inspect($transition$.params().id)
.then(function success(d) {
$scope.containerInfo = d;
})
.catch(function error(e) {
Notifications.error('Failure', e, 'Unable to inspect container');
})
.finally(function final() {
$('#loadingViewSpinner').hide();
});
}
initView();
}]);