38
38
<label >{{ t('calendar', 'Calendar') }}</label >
39
39
<CalendarPicker v-if =" calendar !== undefined"
40
40
:value =" calendar"
41
- :calendars =" ownSortedCalendars "
41
+ :calendars =" sortedCalendars "
42
42
:show-calendar-on-select =" false"
43
43
@select-calendar =" changeCalendar" />
44
44
</div >
@@ -195,7 +195,7 @@ export default {
195
195
... mapState (useSettingsStore, {
196
196
isTalkEnabled: ' talkEnabled' ,
197
197
}),
198
- ... mapState (useCalendarsStore, [' ownSortedCalendars ' ]),
198
+ ... mapState (useCalendarsStore, [' sortedCalendars ' ]),
199
199
... mapStores (useAppointmentConfigsStore, useCalendarsStore, useSettingsStore),
200
200
formTitle () {
201
201
if (this .isNew ) {
@@ -213,26 +213,26 @@ export default {
213
213
},
214
214
calendar () {
215
215
if (! this .editing .targetCalendarUri ) {
216
- return this .ownSortedCalendars [0 ]
216
+ return this .sortedCalendars [0 ]
217
217
}
218
218
219
219
const uri = this .editing .targetCalendarUri
220
- const calendar = this .ownSortedCalendars .find (cal => this .calendarUrlToUri (cal .url ) === uri)
221
- return calendar || this .ownSortedCalendars [0 ]
220
+ const calendar = this .sortedCalendars .find (cal => this .calendarUrlToUri (cal .url ) === uri)
221
+ return calendar || this .sortedCalendars [0 ]
222
222
},
223
223
selectableConflictCalendars () {
224
224
// The target calendar is always a conflict calendar, remove it from additional conflict calendars
225
- return this .ownSortedCalendars .filter (calendar => calendar .url !== this .calendar .url )
225
+ return this .sortedCalendars .filter (calendar => calendar .url !== this .calendar .url )
226
226
},
227
227
conflictCalendars () {
228
228
const freebusyUris = this .editing .calendarFreeBusyUris ?? []
229
229
return freebusyUris .map (uri => {
230
- return this .ownSortedCalendars .find (cal => this .calendarUrlToUri (cal .url ) === uri)
230
+ return this .sortedCalendars .find (cal => this .calendarUrlToUri (cal .url ) === uri)
231
231
})
232
232
},
233
233
defaultConfig () {
234
234
return AppointmentConfig .createDefault (
235
- this .calendarUrlToUri (this .ownSortedCalendars [0 ].url ),
235
+ this .calendarUrlToUri (this .sortedCalendars [0 ].url ),
236
236
this .calendarsStore .scheduleInbox ,
237
237
this .settingsStore .getResolvedTimezone ,
238
238
)
0 commit comments