mirror of
https://github.com/portainer/portainer.git
synced 2025-08-06 14:25:31 +02:00
fix(docker): surface node details docker error [EE-7054] (#11752)
Co-authored-by: testa113 <testa113>
This commit is contained in:
parent
014c491205
commit
6ae0a972d4
1 changed files with 24 additions and 19 deletions
|
@ -5,7 +5,8 @@ angular.module('portainer.docker').controller('NodeDetailsViewController', [
|
|||
'StateManager',
|
||||
'AgentService',
|
||||
'Authentication',
|
||||
function NodeDetailsViewController($q, $stateParams, NodeService, StateManager, AgentService, Authentication) {
|
||||
'Notifications',
|
||||
function NodeDetailsViewController($q, $stateParams, NodeService, StateManager, AgentService, Authentication, Notifications) {
|
||||
var ctrl = this;
|
||||
|
||||
ctrl.$onInit = initView;
|
||||
|
@ -24,7 +25,8 @@ angular.module('portainer.docker').controller('NodeDetailsViewController', [
|
|||
var nodeId = $stateParams.id;
|
||||
$q.all({
|
||||
node: NodeService.node(nodeId),
|
||||
}).then(function (data) {
|
||||
})
|
||||
.then(function (data) {
|
||||
var node = data.node;
|
||||
ctrl.originalNode = node;
|
||||
ctrl.hostDetails = buildHostDetails(node);
|
||||
|
@ -42,6 +44,9 @@ angular.module('portainer.docker').controller('NodeDetailsViewController', [
|
|||
ctrl.disks = agentHostInfo.PhysicalDisks;
|
||||
});
|
||||
}
|
||||
})
|
||||
.catch(function (err) {
|
||||
Notifications.error('Failure', err, 'Unable to retrieve node details');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue