mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-26 19:34:33 +00:00
Backport: fix interface labels are not persistant
Some checks failed
Build / build (push) Has been cancelled
Some checks failed
Build / build (push) Has been cancelled
This commit is contained in:
parent
608fcfd04e
commit
ee5b88e19a
@ -31,6 +31,11 @@ export class MapSettingsService {
|
||||
} else {
|
||||
localStorage.setItem('symbolScaling', 'true');
|
||||
}
|
||||
if (localStorage.getItem('showInterfaceLabels')) {
|
||||
this.showInterfaceLabels = localStorage.getItem('showInterfaceLabels') === 'true' ? true : false;
|
||||
} else {
|
||||
localStorage.setItem('showInterfaceLabels', 'true');
|
||||
}
|
||||
}
|
||||
|
||||
public getSymbolScaling(): boolean {
|
||||
@ -72,6 +77,12 @@ export class MapSettingsService {
|
||||
|
||||
toggleShowInterfaceLabels(value: boolean) {
|
||||
this.showInterfaceLabels = value;
|
||||
localStorage.removeItem('showInterfaceLabels');
|
||||
if (value) {
|
||||
localStorage.setItem('showInterfaceLabels', 'true');
|
||||
} else {
|
||||
localStorage.setItem('showInterfaceLabels', 'false');
|
||||
}
|
||||
}
|
||||
|
||||
toggleIntegrateInterfaceLabels(value: boolean) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user