forked from MapComplete/MapComplete
		
	Finish the additions of reviews
This commit is contained in:
		
							parent
							
								
									c02406241e
								
							
						
					
					
						commit
						cdfffd6120
					
				
					 29 changed files with 675 additions and 142 deletions
				
			
		
							
								
								
									
										9
									
								
								State.ts
									
										
									
									
									
								
							
							
						
						
									
										9
									
								
								State.ts
									
										
									
									
									
								
							|  | @ -13,6 +13,7 @@ import {QueryParameters} from "./Logic/Web/QueryParameters"; | |||
| import {BaseLayer} from "./Logic/BaseLayer"; | ||||
| import LayoutConfig from "./Customizations/JSON/LayoutConfig"; | ||||
| import Hash from "./Logic/Web/Hash"; | ||||
| import {MangroveIdentity} from "./Logic/Web/MangroveReviews"; | ||||
| 
 | ||||
| /** | ||||
|  * Contains the global state: a bunch of UI-event sources | ||||
|  | @ -64,13 +65,15 @@ export default class State { | |||
|      */ | ||||
|     public osmConnection: OsmConnection; | ||||
| 
 | ||||
|     public mangroveIdentity: MangroveIdentity; | ||||
| 
 | ||||
|     public favouriteLayers: UIEventSource<string[]>; | ||||
| 
 | ||||
|     public layerUpdater: UpdateFromOverpass; | ||||
| 
 | ||||
| 
 | ||||
|     public filteredLayers: UIEventSource<FilteredLayer[]> = new UIEventSource<FilteredLayer[]>([]) | ||||
|      | ||||
| 
 | ||||
|     /** | ||||
|      *  The message that should be shown at the center of the screen | ||||
|      */ | ||||
|  | @ -209,6 +212,10 @@ export default class State { | |||
|             true | ||||
|         ); | ||||
| 
 | ||||
|         this.mangroveIdentity = new MangroveIdentity( | ||||
|             this.osmConnection.GetLongPreference("identity", "mangrove") | ||||
|         ); | ||||
| 
 | ||||
| 
 | ||||
|         const h = Hash.Get(); | ||||
|         this.selectedElement.addCallback(selected => { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue