From c8086cdfe1b62f5a86a9b7f2306485ffdc0cf499 Mon Sep 17 00:00:00 2001 From: Gasper Grom Date: Tue, 10 Oct 2023 11:04:13 +0700 Subject: [PATCH] Reload tenants on tenant create --- frontend/src/modules/tenant/components/tenant-new-form.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/modules/tenant/components/tenant-new-form.vue b/frontend/src/modules/tenant/components/tenant-new-form.vue index e008cb06b7..2da0a1aa8e 100644 --- a/frontend/src/modules/tenant/components/tenant-new-form.vue +++ b/frontend/src/modules/tenant/components/tenant-new-form.vue @@ -44,7 +44,7 @@ import { useStore } from 'vuex'; const props = defineProps<{ modelValue: boolean, }>(); -const emit = defineEmits<{(e: 'update:modelValue', value: boolean): void, (e: 'createdTenant', value: boolean): void}>(); +const emit = defineEmits<{(e: 'update:modelValue', value: boolean): void, (e: 'createdTenant', value: boolean): void }>(); const store = useStore(); @@ -87,6 +87,7 @@ const onBtnClick = () => { emit('createdTenant', true); // Select tenant in app + store.dispatch('tenant/doFetch', {}); store.dispatch('auth/doSelectTenant', { tenant }); return Promise.resolve(); }))