Rename property and invert its behavior.
This commit is contained in:
parent
c88aa759ba
commit
1ec658dfef
@ -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": {
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user