Skip to content

Commit

Permalink
added routing config for removing consortium
Browse files Browse the repository at this point in the history
  • Loading branch information
bobcaprice committed May 1, 2024
1 parent 3283d8c commit 8c223de
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ui/src/app/home/home.route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Observable, map } from 'rxjs'
import { MemberInfoEditComponent } from './member-info/member-info-edit.component'
import { AddConsortiumMemberComponent } from './consortium/add-consortium-member.component'
import { ContactUpdateComponent } from './contact/contact-update.component'
import { RemoveConsortiumMemberComponent } from './consortium/remove-consortium-member.component'

export const ManageMemberGuard = (route: ActivatedRouteSnapshot): Observable<boolean> | boolean => {
const router = inject(Router)
Expand Down Expand Up @@ -129,6 +130,15 @@ export const routes: Routes = [
},
canActivate: [AuthGuard],
},
{
path: 'consortium-member/:id/remove',
component: RemoveConsortiumMemberComponent,
data: {
authorities: ['ROLE_USER', 'ROLE_CONSORTIUM_LEAD'],
pageTitle: 'home.title.string',
},
canActivate: [AuthGuard],
},
],
},
]

0 comments on commit 8c223de

Please sign in to comment.