1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 13:29:41 +02:00
portainer/app/docker/views/containers/inspect/containerInspectController.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
758 B
JavaScript
Raw Normal View History

2018-05-06 09:15:57 +02:00
angular.module('portainer.docker').controller('ContainerInspectController', [
'$scope',
'$transition$',
'Notifications',
'ContainerService',
'HttpRequestHelper',
function ($scope, $transition$, Notifications, ContainerService, HttpRequestHelper) {
2017-11-12 20:27:28 +01:00
$scope.state = {
DisplayTextView: false,
};
$scope.containerInfo = {};
2017-11-12 20:27:28 +01:00
function initView() {
2018-05-06 09:15:57 +02:00
HttpRequestHelper.setPortainerAgentTargetHeader($transition$.params().nodeName);
2017-11-12 20:27:28 +01:00
ContainerService.inspect($transition$.params().id)
.then(function success(d) {
$scope.containerInfo = d;
})
.catch(function error(e) {
Notifications.error('Failure', e, 'Unable to inspect container');
});
}
initView();
},
]);