1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 06:49:40 +02:00

feat(sidebar): rename Docker to Engine (#1212)

This commit is contained in:
Anthony Lapenna 2017-09-20 08:23:36 +02:00 committed by GitHub
parent 5131c4c10b
commit d695657711
4 changed files with 12 additions and 12 deletions

View file

@ -0,0 +1,26 @@
angular.module('engine', [])
.controller('EngineController', ['$q', '$scope', 'SystemService', 'Notifications',
function ($q, $scope, SystemService, Notifications) {
function initView() {
$('#loadingViewSpinner').show();
$q.all({
version: SystemService.version(),
info: SystemService.info()
})
.then(function success(data) {
$scope.version = data.version;
$scope.info = data.info;
})
.catch(function error(err) {
$scope.info = {};
$scope.version = {};
Notifications.error('Failure', err, 'Unable to retrieve engine details');
})
.finally(function final() {
$('#loadingViewSpinner').hide();
});
}
initView();
}]);