mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
* feat(jobs): adding the ability to run scripts on endpoints fix(job): click on containerId in JobsDatatable redirects to container's logs refactor(job): remove the jobs datatable settings + texts changes on JobCreation view fix(jobs): jobs payloads are now following API rules and case feat(jobs): adding the capability to run scripts on hosts * feat(jobs): adding the ability to purge jobs containers * refactor(job): apply review changes * feat(job-creation): store image name in local storage * feat(host): disable job exec link in non-agent Swarm setup * feat(host): only display execute job in agent setups or standalone * feat(job): job execution overhaul * docs(swagger): update EndpointJob documentation
20 lines
672 B
JavaScript
20 lines
672 B
JavaScript
angular.module('portainer.docker').controller('NodeBrowserController', [
|
|
'$stateParams', 'NodeService', 'HttpRequestHelper', 'Notifications',
|
|
function NodeBrowserController($stateParams, NodeService, HttpRequestHelper, Notifications) {
|
|
var ctrl = this;
|
|
ctrl.$onInit = $onInit;
|
|
|
|
function $onInit() {
|
|
ctrl.nodeId = $stateParams.id;
|
|
|
|
NodeService.node(ctrl.nodeId)
|
|
.then(function onNodeLoaded(node) {
|
|
HttpRequestHelper.setPortainerAgentTargetHeader(node.Hostname);
|
|
ctrl.node = node;
|
|
})
|
|
.catch(function onError(err) {
|
|
Notifications.error('Unable to retrieve host information', err);
|
|
});
|
|
}
|
|
}
|
|
]);
|