Fix read-only property of fullcalendar event sources

Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
Georg Ehrke 2020-08-22 12:10:54 +02:00
parent 80bf6f0011
commit ec69fa3db5
No known key found for this signature in database
GPG Key ID: 9D98FD9380A1CB43
2 changed files with 7 additions and 7 deletions

View File

@ -72,7 +72,7 @@ export default function(store) {
},
}
if (calendar.isReadOnly) {
if (calendar.readOnly) {
source.editable = false
}

View File

@ -45,7 +45,7 @@ describe('fullcalendar/eventSource test suite', () => {
const calendar = {
id: 'calendar-id-123',
color: '#ff00ff',
isReadOnly: false
readOnly: false
}
generateTextColorForHex
@ -69,7 +69,7 @@ describe('fullcalendar/eventSource test suite', () => {
const calendar = {
id: 'calendar-id-123',
color: '#ff00ff',
isReadOnly: true
readOnly: true
}
generateTextColorForHex
@ -104,7 +104,7 @@ describe('fullcalendar/eventSource test suite', () => {
const calendar = {
id: 'calendar-id-123',
color: '#ff00ff',
isReadOnly: true
readOnly: true
}
const getTimezoneForId = jest.fn()
@ -174,7 +174,7 @@ describe('fullcalendar/eventSource test suite', () => {
const calendar = {
id: 'calendar-id-123',
color: '#ff00ff',
isReadOnly: true
readOnly: true
}
const getTimezoneForId = jest.fn()
@ -239,7 +239,7 @@ describe('fullcalendar/eventSource test suite', () => {
const calendar = {
id: 'calendar-id-123',
color: '#ff00ff',
isReadOnly: true
readOnly: true
}
const getTimezoneForId = jest.fn()
@ -309,7 +309,7 @@ describe('fullcalendar/eventSource test suite', () => {
const calendar = {
id: 'calendar-id-123',
color: '#ff00ff',
isReadOnly: true
readOnly: true
}
const getTimezoneForId = jest.fn()