From 5918aa43e9f7d9996eddfc8176a487ebc6cf112f Mon Sep 17 00:00:00 2001 From: icslucas Date: Wed, 30 Jul 2025 20:37:44 +0200 Subject: [PATCH] Update Button.ts --- src/client/components/baseComponents/Button.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/client/components/baseComponents/Button.ts b/src/client/components/baseComponents/Button.ts index 019d9adbd..f65729d1c 100644 --- a/src/client/components/baseComponents/Button.ts +++ b/src/client/components/baseComponents/Button.ts @@ -7,6 +7,7 @@ import { translateText } from "../../Utils"; export class OButton extends LitElement { @property({ type: String }) title = ""; @property({ type: String }) translationKey = ""; + @property({ type: String }) icon = ""; @property({ type: Boolean }) secondary = false; @property({ type: Boolean }) block = false; @property({ type: Boolean }) blockDesktop = false; @@ -28,9 +29,14 @@ export class OButton extends LitElement { })} ?disabled=${this.disable} > - ${`${this.translationKey}` === "" - ? `${this.title}` - : `${translateText(this.translationKey)}`} +
+ ${this.icon && html``} + + ${`${this.translationKey}` === "" + ? `${this.title}` + : `${translateText(this.translationKey)}`} + +
`; }