From 11abc2f38c58ba63b17280a25718d1ad4d2c3947 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Mon, 7 Feb 2022 16:21:59 +0700 Subject: [PATCH] Allow to open candidate from vacancy candidate card (#943) Signed-off-by: Andrey Sobolev --- models/recruit/src/plugin.ts | 1 - .../src/components/CandidateCard.svelte | 18 +++++++++++++++--- plugins/recruit-resources/src/plugin.ts | 4 ++++ 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/models/recruit/src/plugin.ts b/models/recruit/src/plugin.ts index 07fe5684d2..9920b36d47 100644 --- a/models/recruit/src/plugin.ts +++ b/models/recruit/src/plugin.ts @@ -51,7 +51,6 @@ export default mergeIds(recruitId, recruit, { KanbanCard: '' as AnyComponent, ApplicationPresenter: '' as AnyComponent, ApplicationsPresenter: '' as AnyComponent, - EditVacancy: '' as AnyComponent, EditApplication: '' as AnyComponent, TemplatesIcon: '' as AnyComponent, Applications: '' as AnyComponent, diff --git a/plugins/recruit-resources/src/components/CandidateCard.svelte b/plugins/recruit-resources/src/components/CandidateCard.svelte index 643c502d19..58e6db40a5 100644 --- a/plugins/recruit-resources/src/components/CandidateCard.svelte +++ b/plugins/recruit-resources/src/components/CandidateCard.svelte @@ -14,10 +14,12 @@ --> -
+
{ + showPanel(view.component.EditDoc, candidate._id, candidate._class, 'full') +}}>
CANDIDATE
{#if candidate} @@ -47,11 +51,19 @@