feat: go to Assignment tab after creation and warn if existing without assigning (#14882)

* feat: go to Assignment tab after creation and warn if existing without assigning

* Update AssignmentWarningDialog.tsx

* fix: some changes

* fix: some updates

* Update EventTeamTab.tsx

* update

* update

* update test

* some fixes

* refactor one test and update

* Update managed-event-types.e2e.ts

---------

Co-authored-by: Keith Williams <[email protected]>
Co-authored-by: Udit Takkar <[email protected]>
Co-authored-by: Lauris Skraucis <[email protected]>
This commit is contained in:
authored and GitHub committed 2024-06-11 09:27:07 +00:00
1 parent cd888be61e
commit 33d7da88bf
5 files changed
+106 -4

No files matched your search

@@ -119,7 +119,7 @@ export default function CreateEventTypeDialog({
const createMutation = trpc.viewer.eventTypes.create.useMutation({
onSuccess: async ({ eventType }) => {
await utils.viewer.eventTypes.getByViewer.invalidate();
await router.replace(`/event-types/${eventType.id}`);
await router.replace(`/event-types/${eventType.id}${teamId ? "?tabName=team" : ""}`);
showToast(
t("event_type_created_successfully", {
eventTypeTitle: eventType.title,