forked from MapComplete/MapComplete
		
	Usersettings: use a collapsable dropdown, introduce dropdown special visualisation
This commit is contained in:
		
							parent
							
								
									2e06bf407b
								
							
						
					
					
						commit
						85094fe3ee
					
				
					 14 changed files with 319 additions and 257 deletions
				
			
		| 
						 | 
				
			
			@ -18,6 +18,7 @@ import Constants from "../../Models/Constants"
 | 
			
		|||
import { QueryParameters } from "../Web/QueryParameters"
 | 
			
		||||
import { ThemeMetaTagging } from "./UserSettingsMetaTagging"
 | 
			
		||||
import { MapProperties } from "../../Models/MapProperties"
 | 
			
		||||
import Showdown from "showdown"
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * The part of the state which keeps track of user-related stuff, e.g. the OSM-connection,
 | 
			
		||||
| 
						 | 
				
			
			@ -390,6 +391,13 @@ export default class UserRelatedState {
 | 
			
		|||
            for (const k in userDetails) {
 | 
			
		||||
                amendedPrefs.data["_" + k] = "" + userDetails[k]
 | 
			
		||||
            }
 | 
			
		||||
            if(userDetails.description){
 | 
			
		||||
                amendedPrefs.data["_description_html"] =  Utils.purify(new Showdown.Converter()
 | 
			
		||||
                    .makeHtml(userDetails.description)
 | 
			
		||||
                    ?.replace(/>/g, ">")
 | 
			
		||||
                    ?.replace(/</g, "<")
 | 
			
		||||
                    ?.replace(/\n/g, ""))
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            usersettingMetaTagging.metaTaggging_for_usersettings({ properties: amendedPrefs.data })
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue