mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-12 19:30:52 +00:00
parent
d0d884cf84
commit
358d613308
@ -47,8 +47,8 @@
|
||||
|
||||
let rules: RecurringRule[] = (object as ReccuringEvent).rules ?? []
|
||||
|
||||
let participants: Ref<Person>[] = object.participants
|
||||
let externalParticipants: string[] = object.externalParticipants ?? []
|
||||
let participants: Ref<Person>[] = [...object.participants]
|
||||
let externalParticipants: string[] = [...(object.externalParticipants ?? [])]
|
||||
|
||||
const dispatch = createEventDispatcher()
|
||||
const client = getClient()
|
||||
@ -80,6 +80,12 @@
|
||||
update.dueDate = allDay ? saveUTC(dueDate) : dueDate
|
||||
}
|
||||
}
|
||||
if (deepEqual(object.participants, participants) === false) {
|
||||
update.participants = participants
|
||||
}
|
||||
if (deepEqual(object.externalParticipants, externalParticipants) === false) {
|
||||
update.externalParticipants = externalParticipants
|
||||
}
|
||||
if (deepEqual(object.reminders, reminders) === false) {
|
||||
update.reminders = reminders
|
||||
}
|
||||
|
@ -18,10 +18,6 @@ import { IntlString, mergeIds } from '@hcengineering/platform'
|
||||
import { AnyComponent } from '@hcengineering/ui'
|
||||
|
||||
export default mergeIds(calendarId, calendar, {
|
||||
component: {
|
||||
CreateEvent: '' as AnyComponent,
|
||||
EditEvent: '' as AnyComponent
|
||||
},
|
||||
activity: {
|
||||
ReminderViewlet: '' as AnyComponent
|
||||
},
|
||||
|
@ -144,6 +144,8 @@ const calendarPlugin = plugin(calendarId, {
|
||||
Calendar: '' as Ref<Doc>
|
||||
},
|
||||
component: {
|
||||
CreateEvent: '' as AnyComponent,
|
||||
EditEvent: '' as AnyComponent,
|
||||
CalendarView: '' as AnyComponent,
|
||||
PersonsPresenter: '' as AnyComponent,
|
||||
Events: '' as AnyComponent,
|
||||
|
Loading…
Reference in New Issue
Block a user