feat(engine-details): replace engine view with host view

pull/2255/head
Chaim Lando 2018-09-05 10:13:33 +03:00
parent e58acd7dd6
commit 2113da56fa
5 changed files with 12 additions and 9 deletions

View File

@ -129,13 +129,12 @@ angular.module('portainer.docker', ['portainer.app'])
}
};
var engine = {
name: 'docker.engine',
url: '/engine',
var host = {
name: 'docker.host',
url: '/host',
views: {
'content@': {
templateUrl: 'app/docker/views/engine/engine.html',
controller: 'EngineController'
component: 'hostView'
}
}
};
@ -428,7 +427,7 @@ angular.module('portainer.docker', ['portainer.app'])
$stateRegistryProvider.register(containerStats);
$stateRegistryProvider.register(docker);
$stateRegistryProvider.register(dashboard);
$stateRegistryProvider.register(engine);
$stateRegistryProvider.register(host);
$stateRegistryProvider.register(events);
$stateRegistryProvider.register(images);
$stateRegistryProvider.register(image);

View File

@ -35,5 +35,5 @@
<a ui-sref="docker.swarm" ui-sref-active="active">Swarm <span class="menu-icon fa fa-object-group fa-fw"></span></a>
</li>
<li class="sidebar-list" ng-if="$ctrl.standaloneManagement">
<a ui-sref="docker.engine" ui-sref-active="active">Engine <span class="menu-icon fa fa-th fa-fw"></span></a>
<a ui-sref="docker.host" ui-sref-active="active">Host <span class="menu-icon fa fa-th fa-fw"></span></a>
</li>

View File

@ -1,6 +1,6 @@
<rd-header>
<rd-header-title title-text="Engine overview">
<a data-toggle="tooltip" title="Refresh" ui-sref="docker.engine" ui-sref-opts="{reload: true}">
<a data-toggle="tooltip" title="Refresh" ui-sref="docker.host" ui-sref-opts="{reload: true}">
<i class="fa fa-sync" aria-hidden="true"></i>
</a>
</rd-header-title>

View File

@ -0,0 +1,4 @@
angular.module('portainer.docker').component('hostView', {
templateUrl: 'app/docker/views/host/host.html',
controller: 'HostController'
});

View File

@ -1,5 +1,5 @@
angular.module('portainer.docker')
.controller('EngineController', ['$q', '$scope', 'SystemService', 'Notifications',
.controller('HostController', ['$q', '$scope', 'SystemService', 'Notifications',
function ($q, $scope, SystemService, Notifications) {
function initView() {