mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 00:02:15 +01:00
reload stores after new team is created and data imported
This commit is contained in:
@@ -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<{
|
||||
|
||||
@@ -69,6 +69,7 @@ async function importData() {
|
||||
reject('Import type is null');
|
||||
});
|
||||
});
|
||||
initializeStores();
|
||||
if (reportResult.value) {
|
||||
showResultModal.value = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user