From 1ec658dfef86d08dbc310e6df7665a05e771fcc0 Mon Sep 17 00:00:00 2001 From: pk Date: Wed, 8 Mar 2023 12:42:15 +0100 Subject: [PATCH] Rename property and invert its behavior. --- package.json | 2 +- tp-button.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 2b8563d..33e08f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tp/tp-button", - "version": "1.1.0", + "version": "1.2.0", "description": "", "main": "tp-button.js", "scripts": { diff --git a/tp-button.js b/tp-button.js index 2fe8a9c..7d4379d 100644 --- a/tp-button.js +++ b/tp-button.js @@ -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(); } }