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:
parent
c97f1d24cd
commit
ddd804ee2e
5 changed files with 35 additions and 8 deletions
|
@ -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();
|
||||
}]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue