UBER-1160: Open vacancy panel when it’s opened from applicant (#4473)

* change vacancy link to vacancy panel

Signed-off-by: Danil Uzlov <danil.uzlov@xored.com>

* Use DocNavLink

Signed-off-by: Danil Uzlov <danil.uzlov@xored.com>

---------

Signed-off-by: Danil Uzlov <danil.uzlov@xored.com>
This commit is contained in:
Danil Uzlov 2024-02-02 15:32:49 +07:00 committed by GitHub
parent 075b362c1c
commit 27035518f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,9 +18,9 @@
import { ChannelsEditor } from '@hcengineering/contact-resources'
import { Ref, WithLookup } from '@hcengineering/core'
import { createQuery, getClient } from '@hcengineering/presentation'
import { Vacancy, recruitId } from '@hcengineering/recruit'
import { Vacancy } from '@hcengineering/recruit'
import { Component, Label } from '@hcengineering/ui'
import { NavLink } from '@hcengineering/view-resources'
import { DocNavLink } from '@hcengineering/view-resources'
import recruit from '../plugin'
import VacancyIcon from './icons/Vacancy.svelte'
import chunter from '@hcengineering/chunter'
@ -73,7 +73,7 @@
{/if}
{#if vacancy}
<!-- svelte-ignore a11y-click-events-have-key-events -->
<NavLink {disabled} space={vacancy._id} app={recruitId}>
<DocNavLink {disabled} object={vacancy}>
<div class="name">
{#if inline}
<div class="flex-row-center">
@ -86,7 +86,7 @@
{vacancy.name}
{/if}
</div>
</NavLink>
</DocNavLink>
{#if company}
<span class="label overflow-label">{company.name}</span>
{/if}