feat(web-core): show UiButton loader on the right of the label (#10723)

This commit is contained in:
Joris K
2026-11-06 12:57:52 +01:00
committed by GitHub
parent 12aa9576b9
commit 9c6a59bb89

View File

@@ -1,14 +1,16 @@
<!-- v7 -->
<template>
<button :class="classNames" :disabled="busy || isDisabled || lockIcon" class="ui-button" type="button">
<VtsIcon :busy :name="leftIcon" class="icon" size="current" />
<VtsIcon :name="leftIcon" class="icon" size="current" />
<slot />
<UiLoader v-if="busy" class="icon" />
<VtsIcon v-if="lockIcon" name="fa:lock" size="medium" class="icon" />
</button>
</template>
<script lang="ts" setup>
import VtsIcon from '@core/components/icon/VtsIcon.vue'
import UiLoader from '@core/components/ui/loader/UiLoader.vue'
import { useDisabled } from '@core/composables/disabled.composable.ts'
import type { IconName } from '@core/icons'
import { toVariants } from '@core/utils/to-variants.util.ts'