Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/models/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ const debug = debugFactory('Calendar')
* - order
* - timezone
* - components
* - defaultAlarm
*
* The first four allowing read-write access
* The first five allowing read-write access
*
* @augments DavCollection
*/
Expand All @@ -53,6 +54,7 @@ export class Calendar extends davCollectionPublishable(davCollectionShareable(Da
super._exposeProperty('timezone', NS.IETF_CALDAV, 'calendar-timezone', true)
super._exposeProperty('components', NS.IETF_CALDAV, 'supported-calendar-component-set')
super._exposeProperty('transparency', NS.IETF_CALDAV, 'schedule-calendar-transp', true)
super._exposeProperty('defaultAlarm', NS.NEXTCLOUD, 'default-alarm', true)
}

/**
Expand Down Expand Up @@ -281,6 +283,7 @@ export class Calendar extends davCollectionPublishable(davCollectionShareable(Da
[NS.IETF_CALDAV, 'schedule-calendar-transp'],
[NS.IETF_CALDAV, 'schedule-default-calendar-URL'],
[NS.OWNCLOUD, 'calendar-enabled'],
[NS.NEXTCLOUD, 'default-alarm'],
[NS.NEXTCLOUD, 'owner-displayname'],
[NS.NEXTCLOUD, 'trash-bin-retention-duration'],
[NS.NEXTCLOUD, 'deleted-at'],
Expand Down
1 change: 1 addition & 0 deletions src/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ export default class Parser {
this.registerParser('{http://owncloud.org/ns}calendar-enabled', Parser.bool)
this.registerParser('{http://owncloud.org/ns}enabled', Parser.bool)
this.registerParser('{http://owncloud.org/ns}read-only', Parser.bool)
this.registerParser('{http://owncloud.org/ns}default-alarm', Parser.decInt)
this.registerParser('{http://nextcloud.com/ns}owner-displayname', Parser.text)
this.registerParser('{http://nextcloud.com/ns}deleted-at', Parser.iso8601DateTime)
this.registerParser('{http://nextcloud.com/ns}calendar-uri', Parser.text)
Expand Down
7 changes: 7 additions & 0 deletions src/propset/calendarPropSet.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import * as NS from '../utility/namespaceUtility.js'
* - {urn:ietf:params:xml:ns:caldav}calendar-description
* - {urn:ietf:params:xml:ns:caldav}calendar-timezone
* - {http://owncloud.org/ns}calendar-enabled
* - {http://owncloud.org/ns}default-alarm
*
* @param {object} props
* @return {object}
Expand Down Expand Up @@ -71,6 +72,12 @@ export default function calendarPropSet(props) {
value: value ? '1' : '0',
})
break
case '{http://nextcloud.com/ns}default-alarm':
xmlified.push({
name: [NS.NEXTCLOUD, 'default-alarm'],
value,
})
break
case '{urn:ietf:params:xml:ns:caldav}schedule-calendar-transp':
xmlified.push({
name: [NS.IETF_CALDAV, 'schedule-calendar-transp'],
Expand Down
Loading