mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-27 00:21:03 +00:00
Merge pull request #1532 from GNS3/bugfix/1435
Fix interface labels are not persistant
This commit is contained in:
commit
180c65351b
@ -37,6 +37,12 @@ export class MapSettingsService {
|
||||
} else {
|
||||
localStorage.setItem('openReadme', 'false');
|
||||
}
|
||||
|
||||
if (localStorage.getItem('showInterfaceLabels')) {
|
||||
this.showInterfaceLabels = localStorage.getItem('showInterfaceLabels') === 'true' ? true : false;
|
||||
} else {
|
||||
localStorage.setItem('showInterfaceLabels', 'true');
|
||||
}
|
||||
}
|
||||
|
||||
public getSymbolScaling(): boolean {
|
||||
@ -78,6 +84,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…
Reference in New Issue
Block a user