mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-02-01 22:47:40 +00:00
feat(frontend): add loading prop to FormField component
When loading is true, adds 'is-loading' class to the input element.
This commit is contained in:
@@ -7,6 +7,7 @@ interface Props {
|
||||
error?: string | null
|
||||
id?: string
|
||||
disabled?: boolean
|
||||
loading?: boolean
|
||||
}
|
||||
|
||||
const props = defineProps<Props>()
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user