mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-11 11:41:35 +00:00
Update new-template-dialog.component.ts
This commit is contained in:
parent
81bc3cb3bd
commit
93532d3274
@ -176,9 +176,15 @@ export class NewTemplateDialogComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateAppliances() {
|
updateAppliances() {
|
||||||
|
this.progressService.activate();
|
||||||
this.applianceService.updateAppliances(this.server).subscribe((appliances) => {
|
this.applianceService.updateAppliances(this.server).subscribe((appliances) => {
|
||||||
this.appliances = appliances;
|
this.appliances = appliances;
|
||||||
})
|
this.progressService.deactivate();
|
||||||
|
this.toasterService.success('Appliances are up-to-date.');
|
||||||
|
}, error => {
|
||||||
|
this.progressService.deactivate();
|
||||||
|
this.toasterService.error('Appliances were not updated correctly.');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
refreshImages() {
|
refreshImages() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user