mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-30 23:39:31 +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,7 +55,10 @@
|
||||
</DocNavLink>
|
||||
{#if client.getHierarchy().hasMixin(candidate, recruit.mixin.Candidate)}
|
||||
{@const cand = client.getHierarchy().as(candidate, recruit.mixin.Candidate)}
|
||||
<div class="description lines-limit-2">{cand.title ?? ''}</div>
|
||||
{@const titleAttribute = client.getHierarchy().getAttribute(recruit.mixin.Candidate, 'title')}
|
||||
{#if !titleAttribute.hidden}
|
||||
<div class="description lines-limit-2">{cand.title ?? ''}</div>
|
||||
{/if}
|
||||
{/if}
|
||||
<div class="description overflow-label">{candidate.city ?? ''}</div>
|
||||
<div class="footer flex flex-reverse flex-grow">
|
||||
@ -95,6 +98,7 @@
|
||||
user-select: text;
|
||||
min-width: 15rem;
|
||||
min-height: 15rem;
|
||||
max-width: 25rem;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--theme-button-hovered);
|
||||
|
@ -35,6 +35,7 @@
|
||||
const client = getClient()
|
||||
const hierarchy = client.getHierarchy()
|
||||
const assigneeAttribute = hierarchy.getAttribute(recruit.class.Applicant, 'assignee')
|
||||
const isTitleHidden = client.getHierarchy().getAttribute(recruit.mixin.Candidate, 'title').hidden
|
||||
|
||||
function showCandidate () {
|
||||
showPanel(view.component.EditDoc, object._id, Hierarchy.mixinOrClass(object), 'content')
|
||||
@ -62,7 +63,9 @@
|
||||
<div class="fs-title over-underline lines-limit-2">
|
||||
{object.$lookup?.attachedTo ? getName(object.$lookup.attachedTo) : ''}
|
||||
</div>
|
||||
<div class="text-sm lines-limit-2">{object.$lookup?.attachedTo?.title ?? ''}</div>
|
||||
{#if !isTitleHidden}
|
||||
<div class="text-sm lines-limit-2">{object.$lookup?.attachedTo?.title ?? ''}</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tool mr-1 flex-row-center">
|
||||
|
Loading…
Reference in New Issue
Block a user