Set dav on mocked tasks so we get an uri
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
This commit is contained in:
parent
0c86fe6a50
commit
5cd822fde4
1 changed files with 6 additions and 1 deletions
|
@ -107,7 +107,12 @@ END:VCALENDAR`
|
||||||
calendarsData.forEach(calendarData => {
|
calendarsData.forEach(calendarData => {
|
||||||
const calendar = mapDavCollectionToCalendar(calendarData)
|
const calendar = mapDavCollectionToCalendar(calendarData)
|
||||||
const tasks = calendarData.tasks.map(taskData => {
|
const tasks = calendarData.tasks.map(taskData => {
|
||||||
return new Task(taskData, calendar)
|
const task = new Task(taskData, calendar)
|
||||||
|
const response = {
|
||||||
|
url: `${calendar.id}/${task.uid}.ics`
|
||||||
|
}
|
||||||
|
localVue.set(task, 'dav', response)
|
||||||
|
return task
|
||||||
})
|
})
|
||||||
store.commit('addCalendar', calendar)
|
store.commit('addCalendar', calendar)
|
||||||
store.commit('appendTasksToCalendar', { calendar, tasks })
|
store.commit('appendTasksToCalendar', { calendar, tasks })
|
||||||
|
|
Loading…
Reference in a new issue