Use clone in translation

This commit is contained in:
pietervdvn 2021-06-30 15:34:32 +02:00
parent 985e97d43b
commit 5e84b00ca2

View file

@ -41,7 +41,8 @@ export default class SimpleAddUI extends Toggle {
constructor(isShown: UIEventSource<boolean>) { constructor(isShown: UIEventSource<boolean>) {
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([ const readYourMessages = new Combine([
Translations.t.general.readYourMessages.Clone().SetClass("alert"), Translations.t.general.readYourMessages.Clone().SetClass("alert"),
new SubtleButton(Svg.envelope_ui(), new SubtleButton(Svg.envelope_ui(),