mirror of https://github.com/nextcloud/calendar
make shared calendars visible/enabled by default
Signed-off-by: Andreas Demmelbauer <git@notice.at>
This commit is contained in:
parent
1ce714ff69
commit
fc45b65645
|
@ -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 = []
|
||||
|
|
|
@ -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/',
|
||||
|
|
Loading…
Reference in New Issue