Correctly navigate to new task in week view
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
This commit is contained in:
parent
80bdc88dd5
commit
f507452d25
1 changed files with 8 additions and 1 deletions
|
@ -647,7 +647,14 @@ const actions = {
|
|||
if (calendarId) {
|
||||
router.push({ name: 'calendarsTask', params: { calendarId: calendarId, taskId: task.uri } })
|
||||
} else if (collectionId) {
|
||||
router.push({ name: 'collectionsTask', params: { collectionId: collectionId, taskId: task.uri } })
|
||||
if (collectionId === 'week') {
|
||||
router.push({
|
||||
name: 'collectionsParamTask',
|
||||
params: { collectionId: collectionId, taskId: task.uri, collectionParam: '0' }
|
||||
})
|
||||
} else {
|
||||
router.push({ name: 'collectionsTask', params: { collectionId: collectionId, taskId: task.uri } })
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue