From 71201f1007560845041f5010ba6aa7c04f3ecff2 Mon Sep 17 00:00:00 2001 From: jorgep Date: Thu, 26 Sep 2024 17:19:05 +0200 Subject: [PATCH] feat: refs #7874 required fields banner --- src/components/ui/VnNotes.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/ui/VnNotes.vue b/src/components/ui/VnNotes.vue index 143cd2bf9..6ae8538e2 100644 --- a/src/components/ui/VnNotes.vue +++ b/src/components/ui/VnNotes.vue @@ -42,7 +42,6 @@ async function insert() { await axios.post($props.url, newBody); await vnPaginateRef.value.fetch(); } - onBeforeRouteLeave((to, from, next) => { if (newNote.text) quasar.dialog({ @@ -80,6 +79,8 @@ onBeforeRouteLeave((to, from, next) => { v-model="newNote.observationTypeFk" option-label="description" style="flex: 0.15; margin-left: 0" + :required="true" + @keyup.enter.stop="insert" /> { filled size="lg" autogrow - autofocus - @keyup.enter="insert" + @keyup.enter.stop="insert" clearable + :required="true" >