[UBER-339] Update vacancy actions (#3379)

Signed-off-by: Ruslan Bayandinov <wazsone@ya.ru>
This commit is contained in:
Ruslan Bayandinov 2023-06-07 15:07:16 +07:00 committed by GitHub
parent 057feb89d3
commit 43247b6b57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 5 deletions

View File

@ -997,8 +997,8 @@ export function createModel (builder: Builder): void {
createAction(builder, { ...actionTemplates.unarchiveSpace, target: recruit.class.Vacancy })
createAction(builder, {
label: recruit.string.EditVacancy,
icon: view.icon.Edit,
label: view.string.Open,
icon: view.icon.Open,
action: view.actionImpl.ShowPanel,
actionProps: {
component: recruit.component.EditVacancy,
@ -1041,6 +1041,21 @@ export function createModel (builder: Builder): void {
createReviewModel(builder)
createAction(builder, {
...viewTemplates.open,
label: recruit.string.ShowApplications,
icon: recruit.icon.Application,
target: recruit.class.Vacancy,
context: {
mode: ['browser', 'context'],
group: 'create'
},
action: workbench.actionImpl.Navigate,
actionProps: {
mode: 'space'
}
})
createAction(builder, {
...viewTemplates.open,
target: recruit.class.ApplicantMatch,

View File

@ -63,7 +63,8 @@ export default mergeIds(recruitId, recruit, {
GotoRecruitApplication: '' as IntlString,
VacancyList: '' as IntlString,
ConfigLabel: '' as IntlString,
ConfigDescription: '' as IntlString
ConfigDescription: '' as IntlString,
ShowApplications: '' as IntlString
},
validator: {
ApplicantValidator: '' as Resource<<T extends Doc>(doc: T, client: Client) => Promise<Status>>

View File

@ -113,7 +113,9 @@
"Export": "Export",
"ConfigLabel": "Recruiting",
"ConfigDescription": "Extension to manage Talents/Applicants and Vacancies.",
"MyApplications": "My applications"
"MyApplications": "My applications",
"ShowApplications": "Show applications"
},
"status": {
"TalentRequired": "Please select talent",

View File

@ -113,7 +113,9 @@
"Export": "Экспорт",
"ConfigLabel": "Рекрутинг",
"ConfigDescription": "Модуль по работе с талантами/кандидатами и вакансиями",
"MyApplications": "Мои кандидаты"
"MyApplications": "Мои кандидаты",
"ShowApplications": "Показать кандидатов"
},
"status": {
"TalentRequired": "Пожалуйста выберите таланта",