From 5e84b00ca222e37d11c215f0aca5db96b284fcf3 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Wed, 30 Jun 2021 15:34:32 +0200 Subject: [PATCH] Use clone in translation --- UI/BigComponents/SimpleAddUI.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/BigComponents/SimpleAddUI.ts b/UI/BigComponents/SimpleAddUI.ts index cf315337d..75dd3e403 100644 --- a/UI/BigComponents/SimpleAddUI.ts +++ b/UI/BigComponents/SimpleAddUI.ts @@ -41,7 +41,8 @@ export default class SimpleAddUI extends Toggle { constructor(isShown: UIEventSource) { - const loginButton = Translations.t.general.add.pleaseLogin.Clone().onClick(State.state.osmConnection.AttemptLogin); + const loginButton = new SubtleButton(Svg.osm_logo_ui(), Translations.t.general.add.pleaseLogin.Clone()) + .onClick(() => State.state.osmConnection.AttemptLogin()); const readYourMessages = new Combine([ Translations.t.general.readYourMessages.Clone().SetClass("alert"), new SubtleButton(Svg.envelope_ui(),