From 2beb2ecaadf3492752d825344f368d952604891f Mon Sep 17 00:00:00 2001 From: Vyacheslav Tumanov Date: Thu, 3 Aug 2023 15:15:24 +0500 Subject: [PATCH] UBER-677: use State for Leads' status (like applicants do) (#3554) Signed-off-by: Vyacheslav Tumanov --- models/lead/src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/models/lead/src/index.ts b/models/lead/src/index.ts index 9a5471746e0..4328121a131 100644 --- a/models/lead/src/index.ts +++ b/models/lead/src/index.ts @@ -44,6 +44,7 @@ import { generateClassNotificationTypes } from '@hcengineering/model-notificatio import notification from '@hcengineering/notification' import lead from './plugin' import tracker from '@hcengineering/model-tracker' +import { State } from '@hcengineering/task' export { leadId } from '@hcengineering/lead' export { leadOperation } from './migration' @@ -79,6 +80,9 @@ export class TLead extends TTask implements Lead { @Prop(TypeRef(contact.class.Employee), lead.string.Assignee) declare assignee: Ref | null + + @Prop(TypeRef(task.class.State), task.string.TaskState, { _id: task.attribute.State }) + declare status: Ref } @Mixin(lead.mixin.Customer, contact.class.Contact)