mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-22 08:30:09 +00:00
Added a comment for location.reload() function
This commit is contained in:
@ -71,7 +71,8 @@ export class LinkStyleEditorDialogComponent implements OnInit {
|
|||||||
this.linkService.updateLinkStyle(this.server, this.link).subscribe((link) => {
|
this.linkService.updateLinkStyle(this.server, this.link).subscribe((link) => {
|
||||||
this.linksDataSource.update(link);
|
this.linksDataSource.update(link);
|
||||||
this.linksEventSource.edited.next(this.linkToMapLink.convert(link));
|
this.linksEventSource.edited.next(this.linkToMapLink.convert(link));
|
||||||
location.reload()
|
location.reload()
|
||||||
|
// we add this code/line for reload the entire page because single graph/link style is not updated automatically.
|
||||||
// this.toasterService.success("Link updated");
|
// this.toasterService.success("Link updated");
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user