Skip to content

Commit

Permalink
MOBILE-4724 calendar: Fix confirm not shown when leaving
Browse files Browse the repository at this point in the history
  • Loading branch information
dpalou committed Jan 14, 2025
1 parent c51cca9 commit 239ed82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/addons/calendar/calendar-lazy.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import { CoreMainMenuComponentsModule } from '@features/mainmenu/components/comp

import { buildTabMainRoutes } from '@features/mainmenu/mainmenu-tab-routing.module';
import { ADDON_CALENDAR_PAGE_NAME } from './constants';
import { canLeaveGuard } from '@guards/can-leave';

/**
* Build module routes.
Expand Down Expand Up @@ -55,6 +56,7 @@ function buildRoutes(injector: Injector): Routes {
{
path: 'edit/:eventId',
component: AddonCalendarEditEventPage,
canDeactivate: [canLeaveGuard],
},
...buildTabMainRoutes(injector, {
redirectTo: 'index',
Expand Down

0 comments on commit 239ed82

Please sign in to comment.