forked from MapComplete/MapComplete
		
	UX: don't show 'personal' if not logged in
This commit is contained in:
		
							parent
							
								
									aaa112d075
								
							
						
					
					
						commit
						e4ea213ff4
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -90,7 +90,7 @@
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  let officialSearched: Store<MinimalThemeInformation[]> = filtered(
 | 
					  let officialSearched: Store<MinimalThemeInformation[]> = filtered(
 | 
				
			||||||
    new ImmutableStore(officialThemes)
 | 
					    osmConnection.isLoggedIn.map(loggedIn => loggedIn ? officialThemes : officialThemes.filter(th => th.id !== "personal"))
 | 
				
			||||||
  )
 | 
					  )
 | 
				
			||||||
  let hiddenSearched: Store<MinimalThemeInformation[]> = filtered(visitedHiddenThemes)
 | 
					  let hiddenSearched: Store<MinimalThemeInformation[]> = filtered(visitedHiddenThemes)
 | 
				
			||||||
  let customSearched: Store<MinimalThemeInformation[]> = filtered(customThemes)
 | 
					  let customSearched: Store<MinimalThemeInformation[]> = filtered(customThemes)
 | 
				
			||||||
| 
						 | 
					@ -103,6 +103,9 @@
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  })
 | 
					  })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  /**
 | 
				
			||||||
 | 
					   * Opens the first search candidate
 | 
				
			||||||
 | 
					   */
 | 
				
			||||||
  function applySearch() {
 | 
					  function applySearch() {
 | 
				
			||||||
    const didRedirect = SearchUtils.applySpecialSearch(search.data)
 | 
					    const didRedirect = SearchUtils.applySpecialSearch(search.data)
 | 
				
			||||||
    if (didRedirect) {
 | 
					    if (didRedirect) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue