diff --git a/plugins/calendar-resources/src/components/CalendarSelector.svelte b/plugins/calendar-resources/src/components/CalendarSelector.svelte index d666b41b03..783fb1eda3 100644 --- a/plugins/calendar-resources/src/components/CalendarSelector.svelte +++ b/plugins/calendar-resources/src/components/CalendarSelector.svelte @@ -8,6 +8,7 @@ import calendar from '../plugin' export let value: Ref | undefined + export let disabled: boolean = false const dispatch = createEventDispatcher() @@ -45,6 +46,7 @@ {items} withSearch={false} {selected} + {disabled} on:selected={(e) => change(e.detail._id)} /> diff --git a/plugins/calendar-resources/src/components/EventReminderItem.svelte b/plugins/calendar-resources/src/components/EventReminderItem.svelte index 0c7631903b..d608b72d64 100644 --- a/plugins/calendar-resources/src/components/EventReminderItem.svelte +++ b/plugins/calendar-resources/src/components/EventReminderItem.svelte @@ -17,6 +17,7 @@ import { Button, IconClose, IconMoreH, TimeShiftPresenter } from '@hcengineering/ui' export let reminder: number + export let disabled: boolean = false const dispatch = createEventDispatcher() @@ -31,6 +32,7 @@ size={'x-small'} padding={'0 .5rem'} focusIndex={-1} + {disabled} noFocus on:click={(e) => dispatch('edit', e)} /> @@ -40,6 +42,7 @@ size={'x-small'} padding={'0 .5rem'} focusIndex={-1} + {disabled} noFocus on:click={() => dispatch('remove')} /> diff --git a/plugins/calendar-resources/src/components/EventReminders.svelte b/plugins/calendar-resources/src/components/EventReminders.svelte index 014835355b..c842302332 100644 --- a/plugins/calendar-resources/src/components/EventReminders.svelte +++ b/plugins/calendar-resources/src/components/EventReminders.svelte @@ -19,6 +19,7 @@ import EventReminderItem from './EventReminderItem.svelte' export let reminders: number[] + export let disabled: boolean = false const maxReminders: number = 4 let shown: boolean = false @@ -46,6 +47,7 @@