mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 06:19:41 +02:00
feat(edge): EE-4570 allow pre-pull images with edge stack deployment (#8210)
Co-authored-by: Matt Hook <hookenz@gmail.com>
This commit is contained in:
parent
7fe0712b61
commit
919a854d93
22 changed files with 234 additions and 53 deletions
|
@ -20,12 +20,6 @@ export class EdgeStackEndpointsDatatableController {
|
|||
this.onPageChange = this.onPageChange.bind(this);
|
||||
this.paginationChanged = this.paginationChanged.bind(this);
|
||||
this.paginationChangedAsync = this.paginationChangedAsync.bind(this);
|
||||
|
||||
this.statusMap = {
|
||||
1: 'OK',
|
||||
2: 'Error',
|
||||
3: 'Acknowledged',
|
||||
};
|
||||
}
|
||||
|
||||
extendGenericController($controller, $scope) {
|
||||
|
@ -45,8 +39,9 @@ export class EdgeStackEndpointsDatatableController {
|
|||
|
||||
endpointStatusLabel(endpointId) {
|
||||
const status = this.getEndpointStatus(endpointId);
|
||||
const details = (status && status.Details) || {};
|
||||
|
||||
return status ? this.statusMap[status.Type] : 'Pending';
|
||||
return (details.Error && 'Error') || (details.Ok && 'Ok') || (details.ImagesPulled && 'Images pre-pulled') || (details.Acknowledged && 'Acknowledged') || 'Pending';
|
||||
}
|
||||
|
||||
endpointStatusError(endpointId) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue