mirror of
https://github.com/portainer/portainer.git
synced 2025-07-30 10:49:40 +02:00
22 lines
533 B
JavaScript
22 lines
533 B
JavaScript
|
angular
|
||
|
.module('portainer.docker')
|
||
|
.controller('HostBrowserViewController', [
|
||
|
'SystemService', 'HttpRequestHelper',
|
||
|
function HostBrowserViewController(SystemService, HttpRequestHelper) {
|
||
|
var ctrl = this;
|
||
|
|
||
|
ctrl.$onInit = $onInit;
|
||
|
|
||
|
function $onInit() {
|
||
|
loadInfo();
|
||
|
}
|
||
|
|
||
|
function loadInfo() {
|
||
|
SystemService.info().then(function onInfoLoaded(host) {
|
||
|
HttpRequestHelper.setPortainerAgentTargetHeader(host.Name);
|
||
|
ctrl.host = host;
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
]);
|