mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 19:58:09 +00:00
Fix org member channel open (#2725)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
626fb36e7a
commit
fff54ea212
@ -15,7 +15,6 @@
|
||||
-->
|
||||
<script lang="ts">
|
||||
import type { Channel } from '@hcengineering/contact'
|
||||
import { Doc } from '@hcengineering/core'
|
||||
import { getResource } from '@hcengineering/platform'
|
||||
import type { ButtonKind, ButtonSize } from '@hcengineering/ui'
|
||||
import { showPopup } from '@hcengineering/ui'
|
||||
@ -29,11 +28,14 @@
|
||||
export let size: ButtonSize = 'small'
|
||||
export let length: 'tiny' | 'short' | 'full' = 'short'
|
||||
export let shape: 'circle' | undefined = 'circle'
|
||||
export let object: Doc
|
||||
|
||||
async function _open (ev: CustomEvent): Promise<void> {
|
||||
if (ev.detail.presenter !== undefined && Array.isArray(value)) {
|
||||
showPopup(ev.detail.presenter, { _id: object._id, _class: object._class }, 'float')
|
||||
showPopup(
|
||||
ev.detail.presenter,
|
||||
{ _id: ev.detail.channel.attachedTo, _class: ev.detail.channel.attachedToClass },
|
||||
'float'
|
||||
)
|
||||
}
|
||||
if (ev.detail.action !== undefined && Array.isArray(value)) {
|
||||
const action = await getResource(ev.detail.action as ViewAction)
|
||||
|
Loading…
Reference in New Issue
Block a user