Create calendars with VTODO component only

This commit is contained in:
Raimund Schlüßler 2018-11-04 13:38:55 +01:00
parent 2c97f0aadf
commit 6b45b117bc
No known key found for this signature in database
GPG key ID: 036FA7EB1A599178
2 changed files with 2 additions and 2 deletions

2
package-lock.json generated
View file

@ -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"

View file

@ -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)