Skip to content

Commit

Permalink
switch custom icon not clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
bartbutenaers committed Dec 7, 2024
1 parent 5f63a6e commit ac607c2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ui/src/widgets/ui-switch/UISwitch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@
readonly
@click.stop="switchClickable ? toggle() : null"
/>
<v-btn v-else-if="!loading" variant="text" :disabled="!state.enabled" :icon="icon" :color="color" @click="toggle" />
<v-btn
v-else-if="!loading"
variant="text"
:disabled="!state.enabled"
:style="{cursor: switchClickable ? 'pointer' : 'default'}"
:icon="icon"
:color="color"
@click.stop="switchClickable ? toggle() : null"
/>
<v-progress-circular v-else indeterminate color="primary" />
</div>
</template>
Expand Down

0 comments on commit ac607c2

Please sign in to comment.