CASH-79: fix problems when loader suppressed

This commit is contained in:
Adam Caouette 2025-01-12 15:41:57 -05:00
parent 92a854abd1
commit fc3e57321e

View file

@ -5,7 +5,7 @@
:class="[
isPrimary ? 'btn-primary' : 'btn-secondary',
isFloat ? 'float-end' : '',
isLoaderDisplayed ? 'has-loader' : '',
(isLoaderDisplayed && !suppressLoader) ? 'has-loader' : '',
]"
@click="clicked">
<span class="m-0">{{ this.buttonText }}</span>
@ -47,7 +47,7 @@ export default {
true
);
if (!this.isDisabled) {
this.isLoaderDisplayed = true;
if (!this.suppressLoader) this.isLoaderDisplayed = true;
this.$emit("click-event");
}
},