mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-28 11:17:16 +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
|
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>,
|
CopyApplicationId: '' as Ref<Action>,
|
||||||
CopyApplicationLink: '' as Ref<Action>,
|
CopyApplicationLink: '' as Ref<Action>,
|
||||||
CopyCandidateLink: '' as Ref<Action>,
|
CopyCandidateLink: '' as Ref<Action>,
|
||||||
MoveApplicant: '' as Ref<Action>
|
MoveApplicant: '' as Ref<Action>,
|
||||||
|
GetTalentIds: '' as Ref<Action>
|
||||||
},
|
},
|
||||||
actionImpl: {
|
actionImpl: {
|
||||||
CreateOpinion: '' as ViewAction,
|
CreateOpinion: '' as ViewAction,
|
||||||
@ -42,7 +43,8 @@ export default mergeIds(recruitId, recruit, {
|
|||||||
function: {
|
function: {
|
||||||
GetObjectLinkFragment: '' as Resource<(doc: Doc, props: Record<string, any>) => Promise<Location>>,
|
GetObjectLinkFragment: '' as Resource<(doc: Doc, props: Record<string, any>) => Promise<Location>>,
|
||||||
GetIdObjectLinkFragment: '' 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: {
|
string: {
|
||||||
ApplicationsShort: '' as IntlString,
|
ApplicationsShort: '' as IntlString,
|
||||||
|
@ -117,7 +117,8 @@
|
|||||||
"ConfigDescription": "Extension to manage Talents/Applicants and Vacancies.",
|
"ConfigDescription": "Extension to manage Talents/Applicants and Vacancies.",
|
||||||
"MyApplications": "My applications",
|
"MyApplications": "My applications",
|
||||||
|
|
||||||
"ShowApplications": "Show applications"
|
"ShowApplications": "Show applications",
|
||||||
|
"GetTalentIds": "Get talents' ids"
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"ApplicationExists": "Application already exists",
|
"ApplicationExists": "Application already exists",
|
||||||
|
@ -117,7 +117,8 @@
|
|||||||
"ConfigDescription": "Модуль по работе с талантами/кандидатами и вакансиями",
|
"ConfigDescription": "Модуль по работе с талантами/кандидатами и вакансиями",
|
||||||
"MyApplications": "Мои кандидаты",
|
"MyApplications": "Мои кандидаты",
|
||||||
|
|
||||||
"ShowApplications": "Показать кандидатов"
|
"ShowApplications": "Показать кандидатов",
|
||||||
|
"GetTalentIds": "Получить ID талантов"
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"ApplicationExists": "Кандидат уже существует",
|
"ApplicationExists": "Кандидат уже существует",
|
||||||
|
@ -70,6 +70,7 @@ import {
|
|||||||
getRevTitle,
|
getRevTitle,
|
||||||
getSequenceId,
|
getSequenceId,
|
||||||
getSequenceLink,
|
getSequenceLink,
|
||||||
|
getTalentId,
|
||||||
getVacTitle,
|
getVacTitle,
|
||||||
objectLinkProvider,
|
objectLinkProvider,
|
||||||
resolveLocation
|
resolveLocation
|
||||||
@ -335,6 +336,7 @@ export default async (): Promise<Resources> => ({
|
|||||||
VacTitleProvider: getVacTitle,
|
VacTitleProvider: getVacTitle,
|
||||||
RevTitleProvider: getRevTitle,
|
RevTitleProvider: getRevTitle,
|
||||||
IdProvider: getSequenceId,
|
IdProvider: getSequenceId,
|
||||||
|
GetTalentId: getTalentId,
|
||||||
HasActiveApplicant: hasActiveApplicant,
|
HasActiveApplicant: hasActiveApplicant,
|
||||||
HasNoActiveApplicant: hasNoActiveApplicant,
|
HasNoActiveApplicant: hasNoActiveApplicant,
|
||||||
NoneApplications: noneApplicant,
|
NoneApplications: noneApplicant,
|
||||||
|
@ -131,7 +131,8 @@ export default mergeIds(recruitId, recruit, {
|
|||||||
TemplateReplaceConfirm: '' as IntlString,
|
TemplateReplaceConfirm: '' as IntlString,
|
||||||
Apply: '' as IntlString,
|
Apply: '' as IntlString,
|
||||||
OpenVacancyList: '' as IntlString,
|
OpenVacancyList: '' as IntlString,
|
||||||
Export: '' as IntlString
|
Export: '' as IntlString,
|
||||||
|
GetTalentIds: '' as IntlString
|
||||||
},
|
},
|
||||||
space: {
|
space: {
|
||||||
CandidatesPublic: '' as Ref<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()
|
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