forked from MapComplete/MapComplete
		
	Drop option to start with expanded layer menu from sharescreen
This commit is contained in:
		
							parent
							
								
									55480c0616
								
							
						
					
					
						commit
						cfa8ff896e
					
				
					 1 changed files with 1 additions and 8 deletions
				
			
		|  | @ -110,25 +110,18 @@ export default class ShareScreen extends Combine { | |||
|             { urlName: "fs-search", human: tr.fsSearch }, | ||||
|             { urlName: "fs-welcome-message", human: tr.fsWelcomeMessage }, | ||||
|             { urlName: "fs-layers", human: tr.fsLayers }, | ||||
|             { urlName: "layer-control-toggle", human: tr.fsLayerControlToggle, reverse: true }, | ||||
|             { urlName: "fs-add-new", human: tr.fsAddNew }, | ||||
|             { urlName: "fs-geolocation", human: tr.fsGeolocation }, | ||||
|         ] | ||||
| 
 | ||||
|         for (const swtch of switches) { | ||||
|             const checkbox = new CheckBox(Translations.W(swtch.human), !swtch.reverse) | ||||
|             const checkbox = new CheckBox(Translations.W(swtch.human)) | ||||
|             optionCheckboxes.push(checkbox) | ||||
|             optionParts.push( | ||||
|                 checkbox.GetValue().map((isEn) => { | ||||
|                     if (isEn) { | ||||
|                         if (swtch.reverse) { | ||||
|                             return `${swtch.urlName}=true` | ||||
|                         } | ||||
|                         return null | ||||
|                     } else { | ||||
|                         if (swtch.reverse) { | ||||
|                             return null | ||||
|                         } | ||||
|                         return `${swtch.urlName}=false` | ||||
|                     } | ||||
|                 }) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue