Skip to content

Commit

Permalink
feature(notification): #962 initial notification model change
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-mmaul committed Jun 18, 2024
1 parent ebdd3e0 commit f536533
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { RoleGuard } from '@core/user/role.guard';
import { NotificationEditComponent } from '@page/notifications/detail/edit/notification-edit.component';
import { NotificationDetailComponent } from '@page/notifications/detail/notification-detail.component';
import { NotificationsComponent } from '@page/notifications/presentation/notifications.component';
Expand All @@ -38,7 +39,7 @@ const NOTIFICATIONS_ROUTING: Routes = [
pathMatch: 'full',
component: NotificationEditComponent,
data: { i18nextNamespaces: [ 'page.alert' ], roles: [ 'user' ] },
//canActivate: [ RoleGuard ],
canActivate: [ RoleGuard ],
resolve: { i18next: I18NEXT_NAMESPACE_RESOLVER },
},
{
Expand All @@ -50,7 +51,7 @@ const NOTIFICATIONS_ROUTING: Routes = [
},
{
path: ':notificationId/edit',
//canActivate: [ RoleGuard ],
canActivate: [ RoleGuard ],
pathMatch: 'full',
component: NotificationEditComponent,
data: { i18nextNamespaces: [ 'page.alert' ], roles: [ 'user' ] },
Expand Down

0 comments on commit f536533

Please sign in to comment.