mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-12 03:58:17 +00:00
Update new-template-dialog.component.ts
This commit is contained in:
@ -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() {
|
||||||
|
Reference in New Issue
Block a user