BulmaButton: don't show undefined icon

This commit is contained in:
Jörn-Michael Miehe 2023-11-10 21:55:21 +00:00
parent 15309e6710
commit 9e9481217d

View file

@ -1,7 +1,11 @@
<template> <template>
<button class="button"> <button class="button">
<slot v-if="text === undefined" name="default"> <slot v-if="text === undefined" name="default">
<font-awesome-icon :icon="icon" :beat-fade="busy" /> <font-awesome-icon
v-if="icon !== undefined"
:icon="icon"
:beat-fade="busy"
/>
</slot> </slot>
<template v-else> <template v-else>
<span v-if="icon !== undefined" class="icon"> <span v-if="icon !== undefined" class="icon">