Fix edit event members update (#1495)

Signed-off-by: Anna No <anna.no@xored.com>
This commit is contained in:
Anna No 2022-04-22 18:22:03 +07:00 committed by GitHub
parent 9c16e864d5
commit fb27551a6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,13 +62,16 @@
_class={contact.class.Employee}
items={object.participants}
label={calendar.string.Participants}
noItems={calendar.string.NoParticipants}
on:open={(evt) => {
client.update(object, { $push: { participants: evt.detail._id } })
}}
on:delete={(evt) => {
client.update(object, { $pull: { participants: evt.detail._id } })
}}
noItems={calendar.string.NoParticipants}
on:update={(evt) => {
client.update(object, { participants: evt.detail })
}}
/>
</div>
</div>