add notice when time tracker is running in a different organization

This commit is contained in:
Gregor Vostrak
2024-04-26 02:10:45 +02:00
parent 3c158cc015
commit bb5ccf3606
9 changed files with 237 additions and 81 deletions

View File

@@ -0,0 +1,17 @@
import { router } from '@inertiajs/vue3';
import { initializeStores } from '@/utils/init';
export function switchOrganization(organizationId: string) {
router.put(
route('current-team.update'),
{
team_id: organizationId,
},
{
preserveState: false,
onSuccess: () => {
initializeStores();
},
}
);
}