mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-28 08:48:50 +00:00
Fix interface labels are not persistant
This commit is contained in:
parent
ab84d1eea6
commit
27eb8eb9c3
@ -37,6 +37,12 @@ export class MapSettingsService {
|
|||||||
} else {
|
} else {
|
||||||
localStorage.setItem('openReadme', 'false');
|
localStorage.setItem('openReadme', 'false');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (localStorage.getItem('showInterfaceLabels')) {
|
||||||
|
this.showInterfaceLabels = localStorage.getItem('showInterfaceLabels') === 'true' ? true : false;
|
||||||
|
} else {
|
||||||
|
localStorage.setItem('showInterfaceLabels', 'true');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public getSymbolScaling(): boolean {
|
public getSymbolScaling(): boolean {
|
||||||
@ -78,6 +84,12 @@ export class MapSettingsService {
|
|||||||
|
|
||||||
toggleShowInterfaceLabels(value: boolean) {
|
toggleShowInterfaceLabels(value: boolean) {
|
||||||
this.showInterfaceLabels = value;
|
this.showInterfaceLabels = value;
|
||||||
|
localStorage.removeItem('showInterfaceLabels');
|
||||||
|
if (value) {
|
||||||
|
localStorage.setItem('showInterfaceLabels', 'true');
|
||||||
|
} else {
|
||||||
|
localStorage.setItem('showInterfaceLabels', 'false');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
toggleIntegrateInterfaceLabels(value: boolean) {
|
toggleIntegrateInterfaceLabels(value: boolean) {
|
||||||
|
Loading…
Reference in New Issue
Block a user