diff --git a/frontend/src/components/NodeMap.vue b/frontend/src/components/NodeMap.vue index a4952b4..ec5a64c 100644 --- a/frontend/src/components/NodeMap.vue +++ b/frontend/src/components/NodeMap.vue @@ -1,21 +1,32 @@ diff --git a/frontend/src/components/form/ValidationFormInput.vue b/frontend/src/components/form/ValidationFormInput.vue index 54c8c74..d6a9e44 100644 --- a/frontend/src/components/form/ValidationFormInput.vue +++ b/frontend/src/components/form/ValidationFormInput.vue @@ -4,8 +4,9 @@ import { type Constraint, forConstraint } from "@/shared/validation/validator"; import ExpandableHelpBox from "@/components/ExpandableHelpBox.vue"; interface Props { + name: string; modelValue?: string; - label: string; + label?: string; type?: string; placeholder: string; constraint: Constraint; @@ -19,7 +20,11 @@ const emit = defineEmits<{ }>(); const displayLabel = computed(() => - props.constraint.optional ? props.label : `${props.label}*` + props.label + ? props.constraint.optional + ? props.label + : `${props.label}*` + : undefined ); const input = ref(); @@ -75,17 +80,27 @@ onMounted(() => {