Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-09-25 16:55:20 +06:00 committed by GitHub
parent d0d884cf84
commit 358d613308
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 6 deletions

View File

@ -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
}

View File

@ -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
},

View File

@ -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,