mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-25 01:39:53 +00:00
UBER-56: check if title is hidden for Candidate (Talent) in Kanban and Application. Fix Talent card width in Application (#3196)
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
parent
1b9b25e0a8
commit
57b0975404
@ -55,8 +55,11 @@
|
|||||||
</DocNavLink>
|
</DocNavLink>
|
||||||
{#if client.getHierarchy().hasMixin(candidate, recruit.mixin.Candidate)}
|
{#if client.getHierarchy().hasMixin(candidate, recruit.mixin.Candidate)}
|
||||||
{@const cand = client.getHierarchy().as(candidate, recruit.mixin.Candidate)}
|
{@const cand = client.getHierarchy().as(candidate, recruit.mixin.Candidate)}
|
||||||
|
{@const titleAttribute = client.getHierarchy().getAttribute(recruit.mixin.Candidate, 'title')}
|
||||||
|
{#if !titleAttribute.hidden}
|
||||||
<div class="description lines-limit-2">{cand.title ?? ''}</div>
|
<div class="description lines-limit-2">{cand.title ?? ''}</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
{/if}
|
||||||
<div class="description overflow-label">{candidate.city ?? ''}</div>
|
<div class="description overflow-label">{candidate.city ?? ''}</div>
|
||||||
<div class="footer flex flex-reverse flex-grow">
|
<div class="footer flex flex-reverse flex-grow">
|
||||||
<div class="flex-center flex-wrap">
|
<div class="flex-center flex-wrap">
|
||||||
@ -95,6 +98,7 @@
|
|||||||
user-select: text;
|
user-select: text;
|
||||||
min-width: 15rem;
|
min-width: 15rem;
|
||||||
min-height: 15rem;
|
min-height: 15rem;
|
||||||
|
max-width: 25rem;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: var(--theme-button-hovered);
|
background-color: var(--theme-button-hovered);
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
const client = getClient()
|
const client = getClient()
|
||||||
const hierarchy = client.getHierarchy()
|
const hierarchy = client.getHierarchy()
|
||||||
const assigneeAttribute = hierarchy.getAttribute(recruit.class.Applicant, 'assignee')
|
const assigneeAttribute = hierarchy.getAttribute(recruit.class.Applicant, 'assignee')
|
||||||
|
const isTitleHidden = client.getHierarchy().getAttribute(recruit.mixin.Candidate, 'title').hidden
|
||||||
|
|
||||||
function showCandidate () {
|
function showCandidate () {
|
||||||
showPanel(view.component.EditDoc, object._id, Hierarchy.mixinOrClass(object), 'content')
|
showPanel(view.component.EditDoc, object._id, Hierarchy.mixinOrClass(object), 'content')
|
||||||
@ -62,7 +63,9 @@
|
|||||||
<div class="fs-title over-underline lines-limit-2">
|
<div class="fs-title over-underline lines-limit-2">
|
||||||
{object.$lookup?.attachedTo ? getName(object.$lookup.attachedTo) : ''}
|
{object.$lookup?.attachedTo ? getName(object.$lookup.attachedTo) : ''}
|
||||||
</div>
|
</div>
|
||||||
|
{#if !isTitleHidden}
|
||||||
<div class="text-sm lines-limit-2">{object.$lookup?.attachedTo?.title ?? ''}</div>
|
<div class="text-sm lines-limit-2">{object.$lookup?.attachedTo?.title ?? ''}</div>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tool mr-1 flex-row-center">
|
<div class="tool mr-1 flex-row-center">
|
||||||
|
Loading…
Reference in New Issue
Block a user