feat: refs #7874 required fields banner
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-09-26 17:19:05 +02:00
parent 11c135e8c4
commit 71201f1007
1 changed files with 4 additions and 3 deletions

View File

@ -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"
/>
<VnInput
v-model.trim="newNote.text"
@ -88,9 +89,9 @@ onBeforeRouteLeave((to, from, next) => {
filled
size="lg"
autogrow
autofocus
@keyup.enter="insert"
@keyup.enter.stop="insert"
clearable
:required="true"
>
<template #append>
<QBtn