1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-21 22:39:41 +02:00

feat(container-inspect): display content in tree view by default (#1310)

This commit is contained in:
1138-4EB 2017-10-24 09:32:21 +02:00 committed by Anthony Lapenna
parent c97f1d24cd
commit ddd804ee2e
5 changed files with 35 additions and 8 deletions

View file

@ -1,9 +1,13 @@
angular.module('containerInspect', [])
angular.module('containerInspect', ['angular-json-tree'])
.controller('ContainerInspectController', ['$scope', '$transition$', 'Notifications', 'ContainerService',
function ($scope, $transition$, Notifications, ContainerService) {
$scope.state = { DisplayTextView: false };
$scope.containerInfo = {};
function initView() {
$('#loadingViewSpinner').show();
ContainerService.inspect($transition$.params().id)
.then(function success(d) {
$scope.containerInfo = d;
@ -15,6 +19,6 @@ function ($scope, $transition$, Notifications, ContainerService) {
$('#loadingViewSpinner').hide();
});
}
initView();
}]);