TSK-1013: add position field to Employee (#2874)

Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
Vyacheslav Tumanov 2023-04-04 13:39:35 +05:00 committed by GitHub
parent a49792b731
commit c6fc35cfaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 5 deletions

View File

@ -162,6 +162,9 @@ export class TEmployee extends TPerson implements Employee {
@Prop(TypeString(), contact.string.DisplayName)
displayName?: string | null
@Prop(TypeString(), contact.string.Position)
position?: string | null
}
@Model(contact.class.EmployeeAccount, core.class.Account)

View File

@ -88,6 +88,7 @@
"CategoryProjectLead": "Project lead",
"CategoryCurrentUser": "Current user",
"CategoryOther": "Other",
"NumberMembers": "{count, plural, =0 {no members} =1 {1 member} other {# members}}"
"NumberMembers": "{count, plural, =0 {no members} =1 {1 member} other {# members}}",
"Position": "Position"
}
}

View File

@ -88,6 +88,7 @@
"CategoryPreviousAssigned": "Ранее назначенные",
"CategoryProjectLead": "Руководитель проекта",
"CategoryProjectMembers": "Участники проекта",
"CategoryOther": "Прочие"
"CategoryOther": "Прочие",
"Position": "Должность"
}
}

View File

@ -131,6 +131,7 @@ export interface Employee extends Person {
mergedTo?: Ref<Employee>
statuses?: number
displayName?: string | null
position?: string | null
}
/**
@ -244,7 +245,8 @@ export const contactPlugin = plugin(contactId, {
UseColor: '' as IntlString,
PersonFirstNamePlaceholder: '' as IntlString,
PersonLastNamePlaceholder: '' as IntlString,
DisplayName: '' as IntlString
DisplayName: '' as IntlString,
Position: '' as IntlString
},
viewlet: {
TableMember: '' as Ref<Viewlet>,