forked from MapComplete/MapComplete
		
	feature(usersettings): Add option to show all questions at once
This commit is contained in:
		
							parent
							
								
									7bd3fcd490
								
							
						
					
					
						commit
						60f3499eb0
					
				
					 10 changed files with 72 additions and 26 deletions
				
			
		|  | @ -34,10 +34,10 @@ export default class UserRelatedState extends ElementsState { | |||
|      */ | ||||
|     public maprouletteConnection: Maproulette | ||||
| 
 | ||||
|     public readonly isTranslator: Store<boolean> | ||||
| 
 | ||||
|     public readonly installedUserThemes: Store<string[]> | ||||
| 
 | ||||
|     public readonly showAllQuestionsAtOnce: UIEventSource<boolean> | ||||
| 
 | ||||
|     constructor(layoutToUse: LayoutConfig, options?: { attemptLogin: true | boolean }) { | ||||
|         super(layoutToUse) | ||||
| 
 | ||||
|  | @ -73,7 +73,12 @@ export default class UserRelatedState extends ElementsState { | |||
|         } | ||||
| 
 | ||||
|         this.changes = new Changes(this, layoutToUse?.isLeftRightSensitive() ?? false) | ||||
| 
 | ||||
|         this.showAllQuestionsAtOnce = UIEventSource.asBoolean( | ||||
|             this.osmConnection.GetPreference("show-all-questions", "false", { | ||||
|                 documentation: | ||||
|                     "Either 'true' or 'false'. If set, all questions will be shown all at once", | ||||
|             }) | ||||
|         ) | ||||
|         new ChangeToElementsActor(this.changes, this.allElements) | ||||
|         new PendingChangesUploader(this.changes, this.selectedElement) | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue