Rename property and invert its behavior.

This commit is contained in:
pk 2023-03-08 12:42:15 +01:00
parent c88aa759ba
commit 1ec658dfef
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@tp/tp-button", "name": "@tp/tp-button",
"version": "1.1.0", "version": "1.2.0",
"description": "", "description": "",
"main": "tp-button.js", "main": "tp-button.js",
"scripts": { "scripts": {

View File

@ -140,7 +140,7 @@ class TpButton extends EventHelpers(LitElement) {
return { return {
submit: { type: Boolean }, submit: { type: Boolean },
extended: { type: Boolean }, extended: { type: Boolean },
slient: { type: Boolean }, reactive: { type: Boolean },
locked: { type: Boolean, reflect: true }, locked: { type: Boolean, reflect: true },
}; };
} }
@ -339,7 +339,7 @@ class TpButton extends EventHelpers(LitElement) {
} }
_onFormSubmit() { _onFormSubmit() {
if (!this.slient) { if (this.reactive) {
this.showSpinner(); this.showSpinner();
} }
} }
@ -347,7 +347,7 @@ class TpButton extends EventHelpers(LitElement) {
_onFormSuccess() { _onFormSuccess() {
this.isSubmitting(false); this.isSubmitting(false);
if (!this.slient) { if (this.reactive) {
this.showSuccess(); this.showSuccess();
} }
} }
@ -364,7 +364,7 @@ class TpButton extends EventHelpers(LitElement) {
this.isSubmitting = false; this.isSubmitting = false;
if (!this.slient) { if (this.reactive) {
this.showError(); this.showError();
} }
} }