mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-14 04:08:19 +00:00
ATS-13: Copy ID action (#3533)
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
parent
cef766c5a9
commit
98055e4dc4
@ -1453,4 +1453,26 @@ export function createModel (builder: Builder): void {
|
||||
},
|
||||
recruit.action.MoveApplicant
|
||||
)
|
||||
|
||||
createAction(
|
||||
builder,
|
||||
{
|
||||
action: view.actionImpl.CopyTextToClipboard,
|
||||
actionProps: {
|
||||
textProvider: recruit.function.GetTalentId
|
||||
},
|
||||
label: recruit.string.GetTalentIds,
|
||||
icon: view.icon.CopyId,
|
||||
keyBinding: [],
|
||||
input: 'any',
|
||||
category: recruit.category.Recruit,
|
||||
target: recruit.mixin.Candidate,
|
||||
context: {
|
||||
mode: ['context', 'browser'],
|
||||
application: recruit.app.Recruit,
|
||||
group: 'copy'
|
||||
}
|
||||
},
|
||||
recruit.action.GetTalentIds
|
||||
)
|
||||
}
|
||||
|
@ -30,7 +30,8 @@ export default mergeIds(recruitId, recruit, {
|
||||
CopyApplicationId: '' as Ref<Action>,
|
||||
CopyApplicationLink: '' as Ref<Action>,
|
||||
CopyCandidateLink: '' as Ref<Action>,
|
||||
MoveApplicant: '' as Ref<Action>
|
||||
MoveApplicant: '' as Ref<Action>,
|
||||
GetTalentIds: '' as Ref<Action>
|
||||
},
|
||||
actionImpl: {
|
||||
CreateOpinion: '' as ViewAction,
|
||||
@ -42,7 +43,8 @@ export default mergeIds(recruitId, recruit, {
|
||||
function: {
|
||||
GetObjectLinkFragment: '' as Resource<(doc: Doc, props: Record<string, any>) => Promise<Location>>,
|
||||
GetIdObjectLinkFragment: '' as Resource<(doc: Doc, props: Record<string, any>) => Promise<Location>>,
|
||||
GetObjectLink: '' as Resource<(doc: Doc, props: Record<string, any>) => Promise<string>>
|
||||
GetObjectLink: '' as Resource<(doc: Doc, props: Record<string, any>) => Promise<string>>,
|
||||
GetTalentId: '' as Resource<(doc: Doc, props: Record<string, any>) => Promise<string>>
|
||||
},
|
||||
string: {
|
||||
ApplicationsShort: '' as IntlString,
|
||||
|
@ -117,7 +117,8 @@
|
||||
"ConfigDescription": "Extension to manage Talents/Applicants and Vacancies.",
|
||||
"MyApplications": "My applications",
|
||||
|
||||
"ShowApplications": "Show applications"
|
||||
"ShowApplications": "Show applications",
|
||||
"GetTalentIds": "Get talents' ids"
|
||||
},
|
||||
"status": {
|
||||
"ApplicationExists": "Application already exists",
|
||||
|
@ -117,7 +117,8 @@
|
||||
"ConfigDescription": "Модуль по работе с талантами/кандидатами и вакансиями",
|
||||
"MyApplications": "Мои кандидаты",
|
||||
|
||||
"ShowApplications": "Показать кандидатов"
|
||||
"ShowApplications": "Показать кандидатов",
|
||||
"GetTalentIds": "Получить ID талантов"
|
||||
},
|
||||
"status": {
|
||||
"ApplicationExists": "Кандидат уже существует",
|
||||
|
@ -70,6 +70,7 @@ import {
|
||||
getRevTitle,
|
||||
getSequenceId,
|
||||
getSequenceLink,
|
||||
getTalentId,
|
||||
getVacTitle,
|
||||
objectLinkProvider,
|
||||
resolveLocation
|
||||
@ -335,6 +336,7 @@ export default async (): Promise<Resources> => ({
|
||||
VacTitleProvider: getVacTitle,
|
||||
RevTitleProvider: getRevTitle,
|
||||
IdProvider: getSequenceId,
|
||||
GetTalentId: getTalentId,
|
||||
HasActiveApplicant: hasActiveApplicant,
|
||||
HasNoActiveApplicant: hasNoActiveApplicant,
|
||||
NoneApplications: noneApplicant,
|
||||
|
@ -131,7 +131,8 @@ export default mergeIds(recruitId, recruit, {
|
||||
TemplateReplaceConfirm: '' as IntlString,
|
||||
Apply: '' as IntlString,
|
||||
OpenVacancyList: '' as IntlString,
|
||||
Export: '' as IntlString
|
||||
Export: '' as IntlString,
|
||||
GetTalentIds: '' as IntlString
|
||||
},
|
||||
space: {
|
||||
CandidatesPublic: '' as Ref<Space>
|
||||
|
@ -196,3 +196,7 @@ export async function getSequenceId (doc: RecruitDocument): Promise<string> {
|
||||
|
||||
return label !== undefined ? `${label}-${doc.number}` : doc.number.toString()
|
||||
}
|
||||
|
||||
export async function getTalentId (doc: Candidate): Promise<string> {
|
||||
return doc._id
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user