fix(core): update

This commit is contained in:
Philipp Kunz 2021-08-25 16:09:52 +02:00
parent e9374900a0
commit b84e2c4774

View File

@ -16,6 +16,11 @@ export class DeesFormSubmit extends DeesElement {
})
public disabled = false;
@property({
type: String
})
public text: string;
constructor() {
super();
}
@ -23,7 +28,7 @@ export class DeesFormSubmit extends DeesElement {
public static styles = [cssManager.defaultStyles, css``];
public render() {
return html`<dees-button @click="${this.submit}" .disabled="${this.disabled}">${this.textContent}</dees-button> `;
return html`<dees-button @click="${this.submit}" .disabled="${this.disabled}">${this.text ? this.text : this.textContent}</dees-button> `;
}
public async submit() {