From bb16500cb57198c37675fc84918614128a06d541 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 10 Jan 2026 21:12:44 +0100 Subject: [PATCH] feat(frontend): add loading prop to FormField component When loading is true, adds 'is-loading' class to the input element. --- frontend/src/components/input/FormField.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/input/FormField.vue b/frontend/src/components/input/FormField.vue index f86166989..178c15ee2 100644 --- a/frontend/src/components/input/FormField.vue +++ b/frontend/src/components/input/FormField.vue @@ -7,6 +7,7 @@ interface Props { error?: string | null id?: string disabled?: boolean + loading?: boolean } const props = defineProps() @@ -36,7 +37,10 @@ const controlClasses = computed(() => [ const inputClasses = computed(() => [ 'input', - {'disabled': props.disabled}, + { + 'disabled': props.disabled, + 'is-loading': props.loading, + }, ]) // Only bind value when modelValue is explicitly provided (not undefined)