mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-26 13:47:26 +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 { Calendar } from '@hcengineering/calendar'
|
||||||
import { getCurrentAccount } from '@hcengineering/core'
|
import { getCurrentAccount } from '@hcengineering/core'
|
||||||
import presentation, { Card, createQuery, getClient } from '@hcengineering/presentation'
|
import presentation, { Card, createQuery, getClient } from '@hcengineering/presentation'
|
||||||
|
import { Integration } from '@hcengineering/setting'
|
||||||
import { Grid, Label, Toggle } from '@hcengineering/ui'
|
import { Grid, Label, Toggle } from '@hcengineering/ui'
|
||||||
import { createEventDispatcher } from 'svelte'
|
import { createEventDispatcher } from 'svelte'
|
||||||
import calendar from '../plugin'
|
import calendar from '../plugin'
|
||||||
|
|
||||||
|
export let integration: Integration
|
||||||
|
|
||||||
const client = getClient()
|
const client = getClient()
|
||||||
|
|
||||||
let calendars: Calendar[] = []
|
let calendars: Calendar[] = []
|
||||||
const query = createQuery()
|
const query = createQuery()
|
||||||
query.query(
|
query.query(
|
||||||
calendar.class.Calendar,
|
calendar.class.ExternalCalendar,
|
||||||
{
|
{
|
||||||
createdBy: getCurrentAccount()._id
|
createdBy: getCurrentAccount()._id,
|
||||||
|
externarUser: integration.value
|
||||||
},
|
},
|
||||||
(res) => (calendars = res)
|
(res) => (calendars = res)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user