CSR-222: check loaderEnabled prop before displaying loader

This commit is contained in:
Adam Caouette 2022-01-06 12:18:29 -05:00
parent 7761ad879d
commit 8946f75877

View file

@ -11,7 +11,7 @@
<p class="small">{{errorMessage}}</p>
</div>
<div v-else class="col list-group list-button-horizontal d-flex flex-column mb-2">
<input type="radio" :id="buttonID" :name="groupName" :value="buttonID" aria-required="true" @keyup.space="displayLoader()" @click="displayLoader()" />
<input type="radio" :id="buttonID" :name="groupName" :value="buttonID" aria-required="true" @keyup.space="handleClick()" @click="handleClick()" />
<label tabindex="-1" aria-checked="false" :for="buttonID" :aria-labelledby="buttonID" class="d-flex flex-column justify-content-center py-3 px-4" :class="isFirstOrLastButton">
<span class="m-0" :class="[this.textPosition]">{{buttonID}}</span>
<span v-if="buttonLabelSubCopy" class="m-0 small" :class="[this.textPosition]">{{buttonLabelSubCopy}}</span>
@ -51,6 +51,9 @@ export default {
methods: {
displayLoader() {
this.isLoaderDisplayed = true;
},
handleClick() {
this.loaderEnabled && this.displayLoader();
}
},
components: {