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",
"version": "1.1.0",
"version": "1.2.0",
"description": "",
"main": "tp-button.js",
"scripts": {

View File

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