mirror of https://github.com/portainer/portainer
feat(engine-details): replace engine view with host view
parent
e58acd7dd6
commit
2113da56fa
|
@ -129,13 +129,12 @@ angular.module('portainer.docker', ['portainer.app'])
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var engine = {
|
var host = {
|
||||||
name: 'docker.engine',
|
name: 'docker.host',
|
||||||
url: '/engine',
|
url: '/host',
|
||||||
views: {
|
views: {
|
||||||
'content@': {
|
'content@': {
|
||||||
templateUrl: 'app/docker/views/engine/engine.html',
|
component: 'hostView'
|
||||||
controller: 'EngineController'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -428,7 +427,7 @@ angular.module('portainer.docker', ['portainer.app'])
|
||||||
$stateRegistryProvider.register(containerStats);
|
$stateRegistryProvider.register(containerStats);
|
||||||
$stateRegistryProvider.register(docker);
|
$stateRegistryProvider.register(docker);
|
||||||
$stateRegistryProvider.register(dashboard);
|
$stateRegistryProvider.register(dashboard);
|
||||||
$stateRegistryProvider.register(engine);
|
$stateRegistryProvider.register(host);
|
||||||
$stateRegistryProvider.register(events);
|
$stateRegistryProvider.register(events);
|
||||||
$stateRegistryProvider.register(images);
|
$stateRegistryProvider.register(images);
|
||||||
$stateRegistryProvider.register(image);
|
$stateRegistryProvider.register(image);
|
||||||
|
|
|
@ -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>
|
<a ui-sref="docker.swarm" ui-sref-active="active">Swarm <span class="menu-icon fa fa-object-group fa-fw"></span></a>
|
||||||
</li>
|
</li>
|
||||||
<li class="sidebar-list" ng-if="$ctrl.standaloneManagement">
|
<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>
|
</li>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<rd-header>
|
<rd-header>
|
||||||
<rd-header-title title-text="Engine overview">
|
<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>
|
<i class="fa fa-sync" aria-hidden="true"></i>
|
||||||
</a>
|
</a>
|
||||||
</rd-header-title>
|
</rd-header-title>
|
|
@ -0,0 +1,4 @@
|
||||||
|
angular.module('portainer.docker').component('hostView', {
|
||||||
|
templateUrl: 'app/docker/views/host/host.html',
|
||||||
|
controller: 'HostController'
|
||||||
|
});
|
|
@ -1,5 +1,5 @@
|
||||||
angular.module('portainer.docker')
|
angular.module('portainer.docker')
|
||||||
.controller('EngineController', ['$q', '$scope', 'SystemService', 'Notifications',
|
.controller('HostController', ['$q', '$scope', 'SystemService', 'Notifications',
|
||||||
function ($q, $scope, SystemService, Notifications) {
|
function ($q, $scope, SystemService, Notifications) {
|
||||||
|
|
||||||
function initView() {
|
function initView() {
|
Loading…
Reference in New Issue