mirror of
https://github.com/portainer/portainer.git
synced 2025-08-05 13:55:21 +02:00
feat(sidebar): rename Docker to Engine (#1212)
This commit is contained in:
parent
5131c4c10b
commit
d695657711
4 changed files with 12 additions and 12 deletions
|
@ -1,6 +1,6 @@
|
|||
<rd-header>
|
||||
<rd-header-title title="Engine overview">
|
||||
<a data-toggle="tooltip" title="Refresh" ui-sref="docker" ui-sref-opts="{reload: true}">
|
||||
<a data-toggle="tooltip" title="Refresh" ui-sref="engine" ui-sref-opts="{reload: true}">
|
||||
<i class="fa fa-refresh" aria-hidden="true"></i>
|
||||
</a>
|
||||
<i id="loadingViewSpinner" class="fa fa-cog fa-spin"></i>
|
|
@ -1,9 +1,7 @@
|
|||
angular.module('docker', [])
|
||||
.controller('DockerController', ['$q', '$scope', 'SystemService', 'Notifications',
|
||||
angular.module('engine', [])
|
||||
.controller('EngineController', ['$q', '$scope', 'SystemService', 'Notifications',
|
||||
function ($q, $scope, SystemService, Notifications) {
|
||||
$scope.info = {};
|
||||
$scope.version = {};
|
||||
|
||||
|
||||
function initView() {
|
||||
$('#loadingViewSpinner').show();
|
||||
$q.all({
|
||||
|
@ -15,6 +13,8 @@ function ($q, $scope, SystemService, Notifications) {
|
|||
$scope.info = data.info;
|
||||
})
|
||||
.catch(function error(err) {
|
||||
$scope.info = {};
|
||||
$scope.version = {};
|
||||
Notifications.error('Failure', err, 'Unable to retrieve engine details');
|
||||
})
|
||||
.finally(function final() {
|
|
@ -50,7 +50,7 @@
|
|||
<a ui-sref="swarm" ui-sref-active="active">Swarm <span class="menu-icon fa fa-object-group"></span></a>
|
||||
</li>
|
||||
<li class="sidebar-list" ng-if="applicationState.endpoint.mode.provider === 'DOCKER_STANDALONE' || applicationState.endpoint.mode.provider === 'VMWARE_VIC'">
|
||||
<a ui-sref="docker" ui-sref-active="active">Docker <span class="menu-icon fa fa-th"></span></a>
|
||||
<a ui-sref="engine" ui-sref-active="active">Engine <span class="menu-icon fa fa-th"></span></a>
|
||||
</li>
|
||||
<li class="sidebar-title" ng-if="!applicationState.application.authentication || isAdmin || isTeamLeader">
|
||||
<span>Portainer settings</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue