1
0

72541: InfoModule, EndUserAgreementComponent, UserAgreementGuard

This commit is contained in:
Kristof De Langhe
2020-08-19 17:47:33 +02:00
parent f1db0c044b
commit 8768645e4a
24 changed files with 258 additions and 22 deletions

View File

@@ -8,6 +8,7 @@ import { getWorkflowItemModulePath } from '../app-routing.module';
import { WorkflowItemDeleteComponent } from './workflow-item-delete/workflow-item-delete.component';
import { WorkflowItemPageResolver } from './workflow-item-page.resolver';
import { WorkflowItemSendBackComponent } from './workflow-item-send-back/workflow-item-send-back.component';
import { UserAgreementGuard } from '../core/user-agreement/user-agreement.guard';
export function getWorkflowItemPageRoute(wfiId: string) {
return new URLCombiner(getWorkflowItemModulePath(), wfiId).toString();
@@ -37,19 +38,19 @@ const WORKFLOW_ITEM_SEND_BACK_PATH = 'sendback';
resolve: { wfi: WorkflowItemPageResolver },
children: [
{
canActivate: [AuthenticatedGuard],
canActivate: [AuthenticatedGuard, UserAgreementGuard],
path: WORKFLOW_ITEM_EDIT_PATH,
component: SubmissionEditComponent,
data: { title: 'submission.edit.title' }
},
{
canActivate: [AuthenticatedGuard],
canActivate: [AuthenticatedGuard, UserAgreementGuard],
path: WORKFLOW_ITEM_DELETE_PATH,
component: WorkflowItemDeleteComponent,
data: { title: 'workflow-item.delete.title' }
},
{
canActivate: [AuthenticatedGuard],
canActivate: [AuthenticatedGuard, UserAgreementGuard],
path: WORKFLOW_ITEM_SEND_BACK_PATH,
component: WorkflowItemSendBackComponent,
data: { title: 'workflow-item.send-back.title' }