mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-06 01:01:33 +00:00
Update mapsettings.service.ts
This commit is contained in:
parent
e863c1f6e7
commit
4a8be81534
@ -14,7 +14,7 @@ export class MapSettingsService {
|
|||||||
public isLayerNumberVisible: boolean = false;
|
public isLayerNumberVisible: boolean = false;
|
||||||
public logConsoleSubject = new Subject<boolean>();
|
public logConsoleSubject = new Subject<boolean>();
|
||||||
public mapRenderedEmitter = new EventEmitter<boolean>();
|
public mapRenderedEmitter = new EventEmitter<boolean>();
|
||||||
public openReadme: boolean = true;
|
public openReadme: boolean;
|
||||||
public showInterfaceLabels: boolean = true;
|
public showInterfaceLabels: boolean = true;
|
||||||
public integrateLinkLabelsToLinks: boolean = true;
|
public integrateLinkLabelsToLinks: boolean = true;
|
||||||
|
|
||||||
@ -29,6 +29,12 @@ export class MapSettingsService {
|
|||||||
} else {
|
} else {
|
||||||
localStorage.setItem('symbolScaling', 'true');
|
localStorage.setItem('symbolScaling', 'true');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (localStorage.getItem('openReadme')) {
|
||||||
|
this.openReadme = localStorage.getItem('openReadme') === 'true' ? true : false;
|
||||||
|
} else {
|
||||||
|
localStorage.setItem('openReadme', 'false');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public getSymbolScaling(): boolean {
|
public getSymbolScaling(): boolean {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user