Skip to content

Commit

Permalink
UBER-677: use State for Leads' status (like applicants do) (#3554)
Browse files Browse the repository at this point in the history
Signed-off-by: Vyacheslav Tumanov <[email protected]>
  • Loading branch information
ThetaDR authored and annano committed Aug 24, 2023
1 parent f5c6365 commit 2beb2ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions models/lead/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -79,6 +80,9 @@ export class TLead extends TTask implements Lead {

@Prop(TypeRef(contact.class.Employee), lead.string.Assignee)
declare assignee: Ref<Employee> | null

@Prop(TypeRef(task.class.State), task.string.TaskState, { _id: task.attribute.State })
declare status: Ref<State>
}

@Mixin(lead.mixin.Customer, contact.class.Contact)
Expand Down

0 comments on commit 2beb2ec

Please sign in to comment.