Fix calendar configurt (#3779)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-10-03 15:56:24 +06:00 committed by GitHub
parent 89c841b424
commit 6e4a459756
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
)