Skip to content

Commit

Permalink
Fixed GH-90
Browse files Browse the repository at this point in the history
  • Loading branch information
BHenkemans authored and CodeNamedRobin committed Dec 12, 2023
1 parent d91f42e commit 8494016
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/ProductCreateComponent.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<Dialog v-model:visible="visible" :header="$t('manageProducts.Add product')">
<Dialog modal v-model:visible="visible" :header="$t('manageProducts.Add product')">
<div class="dialog">
<form @submit="handleProductCreate">
<div class="row">
Expand Down Expand Up @@ -107,6 +107,7 @@ defineProps({
const toast = useToast();
const { t } = useI18n();
const visible = ref(false);
const emit = defineEmits(['update:visible']);
const categories: Ref<ProductCategoryResponse[]> = ref([]);
const vatGroups: Ref<VatGroup[]> = ref([]);
const organsList: Ref<BaseUserResponse[]> = ref([]);
Expand Down Expand Up @@ -150,6 +151,7 @@ const handleProductCreate = handleSubmit(async (values) => {
detail: t('successMessages.productCreated'),
life: 3000,
});
emit('update:visible', false);
}).catch((err) => handleError(err, toast));
});
Expand Down

0 comments on commit 8494016

Please sign in to comment.