Rename property and invert its behavior.
This commit is contained in:
parent
c88aa759ba
commit
1ec658dfef
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@tp/tp-button",
|
||||
"version": "1.1.0",
|
||||
"version": "1.2.0",
|
||||
"description": "",
|
||||
"main": "tp-button.js",
|
||||
"scripts": {
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user