forked from MapComplete/MapComplete
Fix bug with user badge that is not appearing
This commit is contained in:
parent
38f2242426
commit
1ee921b089
2 changed files with 7 additions and 7 deletions
|
@ -5,9 +5,7 @@ import {VariableUiElement} from "./Base/VariableUIElement";
|
|||
import Translations from "./i18n/Translations";
|
||||
import {UserDetails} from "../Logic/Osm/OsmConnection";
|
||||
import {State} from "../State";
|
||||
import {Utils} from "../Utils";
|
||||
import {UIEventSource} from "../Logic/UIEventSource";
|
||||
import {SubtleButton} from "./Base/SubtleButton";
|
||||
import {InitUiElements} from "../InitUiElements";
|
||||
import Combine from "./Base/Combine";
|
||||
|
||||
|
@ -25,7 +23,7 @@ export class UserBadge extends UIElement {
|
|||
constructor() {
|
||||
super(State.state.osmConnection.userDetails);
|
||||
this._userDetails = State.state.osmConnection.userDetails;
|
||||
this._languagePicker = InitUiElements.CreateLanguagePicker();
|
||||
this._languagePicker = InitUiElements.CreateLanguagePicker() ?? new FixedUiElement("");
|
||||
this._loginButton = Translations.t.general.loginWithOpenStreetMap
|
||||
.Clone()
|
||||
.SetClass("userbadge-login")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue