mirror of https://github.com/portainer/portainer
18 lines
479 B
JavaScript
18 lines
479 B
JavaScript
angular.module('portainer.docker').controller('HostJobController', [
|
|
'SystemService', 'Notifications',
|
|
function HostJobController(SystemService, Notifications) {
|
|
var ctrl = this;
|
|
ctrl.$onInit = $onInit;
|
|
|
|
function $onInit() {
|
|
SystemService.info()
|
|
.then(function onInfoLoaded(host) {
|
|
ctrl.host = host;
|
|
})
|
|
.catch(function onError(err) {
|
|
Notifications.error('Unable to retrieve host information', err);
|
|
});
|
|
}
|
|
}
|
|
]);
|