Skip to content

Commit

Permalink
TSK-1013: add position field to Employee (#2874)
Browse files Browse the repository at this point in the history
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
  • Loading branch information
ThetaDR authored Apr 4, 2023
1 parent a49792b commit c6fc35c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
3 changes: 3 additions & 0 deletions models/contact/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 3 additions & 2 deletions plugins/contact-assets/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
5 changes: 3 additions & 2 deletions plugins/contact-assets/lang/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
"CategoryPreviousAssigned": "Ранее назначенные",
"CategoryProjectLead": "Руководитель проекта",
"CategoryProjectMembers": "Участники проекта",
"CategoryOther": "Прочие"
"CategoryOther": "Прочие",
"Position": "Должность"
}
}
}
4 changes: 3 additions & 1 deletion plugins/contact/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export interface Employee extends Person {
mergedTo?: Ref<Employee>
statuses?: number
displayName?: string | null
position?: string | null
}

/**
Expand Down Expand Up @@ -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>,
Expand Down

0 comments on commit c6fc35c

Please sign in to comment.