mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-01 16:11:23 +03:00
UBERF-4061 (#3886)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
035a7fd097
commit
cf377f4753
@ -8,6 +8,7 @@
|
||||
import calendar from '../plugin'
|
||||
|
||||
export let value: Ref<Calendar> | 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)}
|
||||
/>
|
||||
</div>
|
||||
|
@ -17,6 +17,7 @@
|
||||
import { Button, IconClose, IconMoreH, TimeShiftPresenter } from '@hcengineering/ui'
|
||||
|
||||
export let reminder: number
|
||||
export let disabled: boolean = false
|
||||
|
||||
const dispatch = createEventDispatcher()
|
||||
</script>
|
||||
@ -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')}
|
||||
/>
|
||||
|
@ -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 @@
|
||||
<Icon icon={calendar.icon.Notifications} size="small" />
|
||||
<Button
|
||||
label={reminders.length ? calendar.string.AddReminder : calendar.string.Reminders}
|
||||
{disabled}
|
||||
kind={'ghost'}
|
||||
on:click={(e) => addReminder(e)}
|
||||
/>
|
||||
@ -56,6 +58,7 @@
|
||||
{#each reminders.slice(0, maxReminders - 2) as reminder, i}
|
||||
<EventReminderItem
|
||||
{reminder}
|
||||
{disabled}
|
||||
on:edit={(event) => {
|
||||
if (event.detail) edit(event.detail, reminder, i)
|
||||
}}
|
||||
@ -69,6 +72,7 @@
|
||||
kind={'ghost'}
|
||||
size={'x-small'}
|
||||
padding={'0 .5rem'}
|
||||
{disabled}
|
||||
focusIndex={-1}
|
||||
on:click={() => (shown = true)}
|
||||
/>
|
||||
@ -77,6 +81,7 @@
|
||||
</span>
|
||||
</div>
|
||||
<EventReminderItem
|
||||
{disabled}
|
||||
reminder={reminders[reminders.length - 1]}
|
||||
on:edit={(event) => {
|
||||
if (event.detail) edit(event.detail, reminders[reminders.length - 1], reminders.length - 1)
|
||||
@ -87,6 +92,7 @@
|
||||
{#each reminders as reminder, i}
|
||||
<EventReminderItem
|
||||
{reminder}
|
||||
{disabled}
|
||||
on:edit={(event) => {
|
||||
if (event.detail) edit(event.detail, reminder, i)
|
||||
}}
|
||||
|
@ -73,7 +73,6 @@ export default mergeIds(calendarId, calendar, {
|
||||
Times: '' as IntlString,
|
||||
AddParticipants: '' as IntlString,
|
||||
Sync: '' as IntlString,
|
||||
Busy: '' as IntlString,
|
||||
AddReminder: '' as IntlString,
|
||||
SeeAllNumberParticipants: '' as IntlString,
|
||||
SeeAllNumberReminders: '' as IntlString,
|
||||
|
@ -192,6 +192,7 @@ const calendarPlugin = plugin(calendarId, {
|
||||
Visibility: '' as IntlString,
|
||||
Public: '' as IntlString,
|
||||
FreeBusy: '' as IntlString,
|
||||
Busy: '' as IntlString,
|
||||
Private: '' as IntlString,
|
||||
NotAllPermissions: '' as IntlString
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user