diff --git a/resources/js/Pages/Teams/Partials/CreateTeamForm.vue b/resources/js/Pages/Teams/Partials/CreateTeamForm.vue index 147b976f..716604ac 100644 --- a/resources/js/Pages/Teams/Partials/CreateTeamForm.vue +++ b/resources/js/Pages/Teams/Partials/CreateTeamForm.vue @@ -6,6 +6,7 @@ import InputLabel from '@/Components/InputLabel.vue'; import PrimaryButton from '@/Components/PrimaryButton.vue'; import TextInput from '@/Components/TextInput.vue'; import type { User } from '@/types/models'; +import { initializeStores } from '@/utils/init'; const form = useForm({ name: '', @@ -15,6 +16,9 @@ const createTeam = () => { form.post(route('teams.store'), { errorBag: 'createTeam', preserveScroll: true, + onSuccess: () => { + initializeStores(); + }, }); }; const page = usePage<{ diff --git a/resources/js/Pages/Teams/Partials/ImportData.vue b/resources/js/Pages/Teams/Partials/ImportData.vue index ea3b00cf..b1109faa 100644 --- a/resources/js/Pages/Teams/Partials/ImportData.vue +++ b/resources/js/Pages/Teams/Partials/ImportData.vue @@ -69,6 +69,7 @@ async function importData() { reject('Import type is null'); }); }); + initializeStores(); if (reportResult.value) { showResultModal.value = true; }