platform/models/guest/src/utils.ts
Denis Bykhov 7128585f05
Send emails to applicants action (#5615)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
2024-05-17 18:56:00 +07:00

31 lines
855 B
TypeScript

import { type Class, type Doc, type Ref } from '@hcengineering/core'
import { type Builder } from '@hcengineering/model'
import view, { createAction } from '@hcengineering/model-view'
import { type Action } from '@hcengineering/view'
import guest from './plugin'
export function createPublicLinkAction (builder: Builder, _class: Ref<Class<Doc>>, _id: Ref<Action<Doc, any>>): void {
createAction(
builder,
{
action: view.actionImpl.ShowPopup,
actionProps: {
component: guest.component.CreatePublicLink,
element: 'top',
fillProps: {
_objects: 'value'
}
},
label: guest.string.PublicLink,
icon: guest.icon.Link,
input: 'any',
category: guest.category.Guest,
target: _class,
context: {
mode: ['context', 'browser']
}
},
_id
)
}