diff --git a/components/ManageSerie.async.vue b/components/ManageSerie.async.vue index 512dfed..fc2c704 100644 --- a/components/ManageSerie.async.vue +++ b/components/ManageSerie.async.vue @@ -8,7 +8,7 @@ import * as v from 'valibot'; const { t } = useI18n(); const dialog = ref(false); const validateForm = ref(false); - +const rUpload = ref(false); const nameRules = ref([ (value: string) => @@ -28,7 +28,7 @@ const rDaughterLoading = ref(false); /** * Add a new serie */ -function add() { +async function add() { // reset form rDaughterTable.value = []; nameSerie.value = ""; @@ -117,8 +117,13 @@ async function submit (event) { nameSerie: event.target.elements.nameSerie.value, daughterGroup, }), + }) + .then(() => { + rUpload.value = !rUpload.value; + }) + .catch((error) => { + // TODO: show error message }); - } @@ -127,6 +132,7 @@ async function submit (event) { (false); +const rfUpdate = toRef(props, "update"); // For internationalization const { t } = useI18n();