Skip to content

Commit

Permalink
Fixes for prod build
Browse files Browse the repository at this point in the history
  • Loading branch information
edwh committed Sep 4, 2024
1 parent 623fa3b commit eae3c0a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions resources/js/components/SpinButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
:type="type"
@click="onClick"
>
<v-icon :name="computedIconData.name" :class="computedIconData.class" :spin="loading" />
<v-icon :name="computedIconData.name" :class="computedIconData.class" v-if="!loading" />
<span v-else class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
<span v-if="label" class="ml-1">
{{ label }}
</span>
Expand Down Expand Up @@ -110,13 +111,6 @@ export default {
},
computed: {
computedIconData() {
if (this.loading) {
return {
class: `${this.iconClass} ${this.spinColorClass}`,
name: 'sync',
}
}
if (this.done && this.doneIcon) {
return {
class: this.iconClass,
Expand Down

0 comments on commit eae3c0a

Please sign in to comment.