forked from MapComplete/MapComplete
		
	Port user settings
This commit is contained in:
		
							parent
							
								
									97aaa8e941
								
							
						
					
					
						commit
						8085079eff
					
				
					 30 changed files with 566 additions and 497 deletions
				
			
		|  | @ -21,6 +21,7 @@ export class MenuState { | |||
|     public readonly highlightedLayerInFilters: UIEventSource<string> = new UIEventSource<string>( | ||||
|         undefined | ||||
|     ) | ||||
|     public highlightedUserSetting: UIEventSource<string> = new UIEventSource<string>(undefined) | ||||
|     constructor() { | ||||
|         this.themeViewTabIndex = new UIEventSource(0) | ||||
|         this.themeViewTab = this.themeViewTabIndex.sync( | ||||
|  | @ -57,6 +58,12 @@ export class MenuState { | |||
|         } | ||||
|     } | ||||
| 
 | ||||
|     public openUsersettings(highlightTagRendering?: string) { | ||||
|         this.menuIsOpened.setData(true) | ||||
|         this.menuViewTab.setData("settings") | ||||
|         this.highlightedUserSetting.setData(highlightTagRendering) | ||||
|     } | ||||
| 
 | ||||
|     public closeAll() { | ||||
|         this.menuIsOpened.setData(false) | ||||
|         this.themeIsOpened.setData(false) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue