Create calendars with VTODO component only
This commit is contained in:
parent
2c97f0aadf
commit
6b45b117bc
2 changed files with 2 additions and 2 deletions
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -4629,7 +4629,7 @@
|
|||
"dev": true
|
||||
},
|
||||
"cdav-library": {
|
||||
"version": "github:nextcloud/cdav-library#46f1313d6d3843f7a55b8c065f2ff370f5357562",
|
||||
"version": "github:nextcloud/cdav-library#ff47e205ef07cd38c174a3d0582f371cd4bc93f9",
|
||||
"from": "github:nextcloud/cdav-library",
|
||||
"requires": {
|
||||
"@babel/polyfill": "^7.0.0"
|
||||
|
|
|
@ -380,7 +380,7 @@ const actions = {
|
|||
* @returns {Promise}
|
||||
*/
|
||||
async appendCalendar(context, calendar) {
|
||||
return client.calendarHomes[0].createCalendarCollection(calendar.displayName, calendar.color)
|
||||
return client.calendarHomes[0].createCalendarCollection(calendar.displayName, calendar.color, ['VTODO'])
|
||||
.then((response) => {
|
||||
calendar = mapDavCollectionToCalendar(response)
|
||||
context.commit('addCalendar', calendar)
|
||||
|
|
Loading…
Reference in a new issue