mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 21:50:34 +03:00
Fix calendar configurt (#3779)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
89c841b424
commit
6e4a459756
@ -16,18 +16,22 @@
|
||||
import { Calendar } from '@hcengineering/calendar'
|
||||
import { getCurrentAccount } from '@hcengineering/core'
|
||||
import presentation, { Card, createQuery, getClient } from '@hcengineering/presentation'
|
||||
import { Integration } from '@hcengineering/setting'
|
||||
import { Grid, Label, Toggle } from '@hcengineering/ui'
|
||||
import { createEventDispatcher } from 'svelte'
|
||||
import calendar from '../plugin'
|
||||
|
||||
export let integration: Integration
|
||||
|
||||
const client = getClient()
|
||||
|
||||
let calendars: Calendar[] = []
|
||||
const query = createQuery()
|
||||
query.query(
|
||||
calendar.class.Calendar,
|
||||
calendar.class.ExternalCalendar,
|
||||
{
|
||||
createdBy: getCurrentAccount()._id
|
||||
createdBy: getCurrentAccount()._id,
|
||||
externarUser: integration.value
|
||||
},
|
||||
(res) => (calendars = res)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user