mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-02 07:20:42 +00:00
Add 'Dash Dot Dot' border type in link style editor
This commit is contained in:
parent
1c8e56274a
commit
0eaa5c714c
@ -21,7 +21,7 @@ export class LinkStyleEditorDialogComponent implements OnInit {
|
|||||||
project: Project;
|
project: Project;
|
||||||
link: Link;
|
link: Link;
|
||||||
formGroup: FormGroup;
|
formGroup: FormGroup;
|
||||||
borderTypes = ["Solid", "Dash", "Dot", "Dash Dot"];
|
borderTypes = ["Solid", "Dash", "Dot", "Dash Dot", "Dash Dot Dot"];
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
public dialogRef: MatDialogRef<LinkStyleEditorDialogComponent>,
|
public dialogRef: MatDialogRef<LinkStyleEditorDialogComponent>,
|
||||||
@ -71,8 +71,8 @@ export class LinkStyleEditorDialogComponent implements OnInit {
|
|||||||
this.linkService.updateLinkStyle(this.controller, this.link).subscribe((link) => {
|
this.linkService.updateLinkStyle(this.controller, 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.
|
// 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();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user