Correctly navigate to new task in week view

Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
This commit is contained in:
Raimund Schlüßler 2019-12-09 20:54:45 +01:00
parent 80bdc88dd5
commit f507452d25
No known key found for this signature in database
GPG key ID: 036FA7EB1A599178

View file

@ -647,7 +647,14 @@ const actions = {
if (calendarId) { if (calendarId) {
router.push({ name: 'calendarsTask', params: { calendarId: calendarId, taskId: task.uri } }) router.push({ name: 'calendarsTask', params: { calendarId: calendarId, taskId: task.uri } })
} else if (collectionId) { } 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 } })
}
} }
}) })