From f15f675a91fc139314d3c2f5fa8ce88d91740b95 Mon Sep 17 00:00:00 2001 From: upsiflu Date: Mon, 20 Jan 2025 18:33:35 +0200 Subject: [PATCH] fix(ui): regression. Re-enable `disabled` state on buttons (with boolean) --- front/src/components/ui/Button.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/front/src/components/ui/Button.vue b/front/src/components/ui/Button.vue index 30adbe72d..954dc2fe8 100644 --- a/front/src/components/ui/Button.vue +++ b/front/src/components/ui/Button.vue @@ -102,6 +102,7 @@ onMounted(() => { width(props, ['square'])( align(props, { alignSelf:'start', alignText:'center' })( )))}" + :disabled="disabled || undefined" :class="['funkwhale', 'button', {'split-toggle': !dropdownOnly}]" :title="splitTitle" @click="onSplitClick" @@ -116,6 +117,7 @@ onMounted(() => { width(props, isIconOnly ? ['square'] : ['normalHeight', 'buttonWidth'])( align(props, { alignSelf:'start', alignText:'center' })( )))" + :disabled="disabled || undefined" class="funkwhale button" :aria-pressed="props.ariaPressed" :class="{