mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-23 10:05:01 +02:00
Card notifications (#10503)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -876,8 +876,17 @@ export async function OnCardTag (ctx: TxMixin<Card, Card>[], control: TriggerCon
|
||||
return res
|
||||
}
|
||||
|
||||
export async function CardTextPresenter (doc: Doc): Promise<string> {
|
||||
const card = doc as Card
|
||||
|
||||
return card.title
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
||||
export default async () => ({
|
||||
function: {
|
||||
CardTextPresenter
|
||||
},
|
||||
trigger: {
|
||||
OnAttribute,
|
||||
OnAttributeRemove,
|
||||
|
||||
Reference in New Issue
Block a user