make shared calendars visible/enabled by default

Signed-off-by: Andreas Demmelbauer <git@notice.at>
This commit is contained in:
Andreas Demmelbauer 2021-06-11 20:40:21 +02:00
parent 1ce714ff69
commit fc45b65645
2 changed files with 4 additions and 4 deletions

View File

@ -123,9 +123,9 @@ const mapDavCollectionToCalendar = (calendar, currentUserPrincipal) => {
enabled = calendar.enabled
} else {
// If there is no calendar-enabled,
// we will display the calendar by default if it's owned by the user
// or hide it by default it it's just shared with them
enabled = !isSharedWithMe
// we will display the calendar by default and set enabled
enabled = true
calendar.enabled = true
}
const shares = []

View File

@ -245,7 +245,7 @@ describe('Test suite: Calendar model (models/calendar.js)', () => {
color: '#FF00FF',
dav: cdavObject,
displayName: 'Displayname of calendar 123',
enabled: false,
enabled: true,
id: 'L2Zvby9iYXI=',
order: 0,
owner: '/remote.php/dav/principals/users/admin/',