From 43247b6b5774f9bb35d8af6a9bfc1ea6ade0a37c Mon Sep 17 00:00:00 2001 From: Ruslan Bayandinov <45530296+wazsone@users.noreply.github.com> Date: Wed, 7 Jun 2023 15:07:16 +0700 Subject: [PATCH] [UBER-339] Update vacancy actions (#3379) Signed-off-by: Ruslan Bayandinov --- models/recruit/src/index.ts | 19 +++++++++++++++++-- models/recruit/src/plugin.ts | 3 ++- plugins/recruit-assets/lang/en.json | 4 +++- plugins/recruit-assets/lang/ru.json | 4 +++- 4 files changed, 25 insertions(+), 5 deletions(-) diff --git a/models/recruit/src/index.ts b/models/recruit/src/index.ts index ca162fc385..336fa6b0d4 100644 --- a/models/recruit/src/index.ts +++ b/models/recruit/src/index.ts @@ -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, diff --git a/models/recruit/src/plugin.ts b/models/recruit/src/plugin.ts index f24dbe90fb..cfefb646a9 100644 --- a/models/recruit/src/plugin.ts +++ b/models/recruit/src/plugin.ts @@ -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<(doc: T, client: Client) => Promise> diff --git a/plugins/recruit-assets/lang/en.json b/plugins/recruit-assets/lang/en.json index 69bb1c5adf..857c63ecfb 100644 --- a/plugins/recruit-assets/lang/en.json +++ b/plugins/recruit-assets/lang/en.json @@ -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", diff --git a/plugins/recruit-assets/lang/ru.json b/plugins/recruit-assets/lang/ru.json index 0617111819..4c5fa75920 100644 --- a/plugins/recruit-assets/lang/ru.json +++ b/plugins/recruit-assets/lang/ru.json @@ -113,7 +113,9 @@ "Export": "Экспорт", "ConfigLabel": "Рекрутинг", "ConfigDescription": "Модуль по работе с талантами/кандидатами и вакансиями", - "MyApplications": "Мои кандидаты" + "MyApplications": "Мои кандидаты", + + "ShowApplications": "Показать кандидатов" }, "status": { "TalentRequired": "Пожалуйста выберите таланта",