Merge pull request 'Fix routing to fix task in scheduler' (#72) from issue-51 into master
Reviewed-on: #72
This commit is contained in:
commit
19f3b6cf65
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<app-navigation-link-list #navLinkList [navigationLinks]="defaultNavigationLinkPath"></app-navigation-link-list>
|
<app-navigation-link-list #navLinkList [navigationLinks]="defaultNavigationLinkPath"></app-navigation-link-list>
|
||||||
|
|
||||||
|
@ -171,7 +171,7 @@ export class SchedulerComponent implements OnInit{
|
|||||||
start: new Date(scheduleInfo.scheduleDate),
|
start: new Date(scheduleInfo.scheduleDate),
|
||||||
title: this.task!.taskName,
|
title: this.task!.taskName,
|
||||||
color: colors['red'],
|
color: colors['red'],
|
||||||
allDay: true
|
allDay: true,
|
||||||
})
|
})
|
||||||
this.refresh.next();
|
this.refresh.next();
|
||||||
}
|
}
|
||||||
@ -204,7 +204,9 @@ export class SchedulerComponent implements OnInit{
|
|||||||
color: color,
|
color: color,
|
||||||
allDay: true,
|
allDay: true,
|
||||||
meta: {
|
meta: {
|
||||||
ID: this.scheduleID
|
ID: this.scheduleID,
|
||||||
|
taskgroupID: schedule.taskgroupPath[schedule.taskgroupPath.length-1].taskgroupID,
|
||||||
|
taskID: schedule.task.taskID
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.refresh.next();
|
this.refresh.next();
|
||||||
@ -212,7 +214,8 @@ export class SchedulerComponent implements OnInit{
|
|||||||
}
|
}
|
||||||
|
|
||||||
eventClicked({ event }: { event: CalendarEvent }): void {
|
eventClicked({ event }: { event: CalendarEvent }): void {
|
||||||
this.router.navigateByUrl("/taskgroups/" + this.taskgroupID.toString() + "/tasks/" + this.task!.taskID )
|
console.log(event.meta.taskgroupID);
|
||||||
|
this.router.navigateByUrl("/taskgroups/" + event.meta.taskgroupID + "/tasks/" + event.meta.taskID )
|
||||||
}
|
}
|
||||||
|
|
||||||
computeTaskPath(taskgroupPath: TaskgroupEntityInfo[], task: TaskShortInfo | TaskEntityInfo) {
|
computeTaskPath(taskgroupPath: TaskgroupEntityInfo[], task: TaskShortInfo | TaskEntityInfo) {
|
||||||
|
Loading…
Reference in New Issue
Block a user