mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-24 12:29:37 +00:00
UBER-677: use State for Leads' status (like applicants do) (#3554)
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
parent
e4a4630ee2
commit
af2cbfe4be
@ -44,6 +44,7 @@ import { generateClassNotificationTypes } from '@hcengineering/model-notificatio
|
|||||||
import notification from '@hcengineering/notification'
|
import notification from '@hcengineering/notification'
|
||||||
import lead from './plugin'
|
import lead from './plugin'
|
||||||
import tracker from '@hcengineering/model-tracker'
|
import tracker from '@hcengineering/model-tracker'
|
||||||
|
import { State } from '@hcengineering/task'
|
||||||
|
|
||||||
export { leadId } from '@hcengineering/lead'
|
export { leadId } from '@hcengineering/lead'
|
||||||
export { leadOperation } from './migration'
|
export { leadOperation } from './migration'
|
||||||
@ -79,6 +80,9 @@ export class TLead extends TTask implements Lead {
|
|||||||
|
|
||||||
@Prop(TypeRef(contact.class.Employee), lead.string.Assignee)
|
@Prop(TypeRef(contact.class.Employee), lead.string.Assignee)
|
||||||
declare assignee: Ref<Employee> | null
|
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)
|
@Mixin(lead.mixin.Customer, contact.class.Contact)
|
||||||
|
Loading…
Reference in New Issue
Block a user