mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-22 16:27:22 +00:00
Allow to open candidate from vacancy candidate card (#943)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
666b4446b8
commit
11abc2f38c
@ -51,7 +51,6 @@ export default mergeIds(recruitId, recruit, {
|
|||||||
KanbanCard: '' as AnyComponent,
|
KanbanCard: '' as AnyComponent,
|
||||||
ApplicationPresenter: '' as AnyComponent,
|
ApplicationPresenter: '' as AnyComponent,
|
||||||
ApplicationsPresenter: '' as AnyComponent,
|
ApplicationsPresenter: '' as AnyComponent,
|
||||||
EditVacancy: '' as AnyComponent,
|
|
||||||
EditApplication: '' as AnyComponent,
|
EditApplication: '' as AnyComponent,
|
||||||
TemplatesIcon: '' as AnyComponent,
|
TemplatesIcon: '' as AnyComponent,
|
||||||
Applications: '' as AnyComponent,
|
Applications: '' as AnyComponent,
|
||||||
|
@ -14,10 +14,12 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import contact, { Channel, formatName } from '@anticrm/contact'
|
||||||
|
import { ChannelsView } from '@anticrm/contact-resources'
|
||||||
import { Avatar, createQuery } from '@anticrm/presentation'
|
import { Avatar, createQuery } from '@anticrm/presentation'
|
||||||
import type { Candidate } from '@anticrm/recruit'
|
import type { Candidate } from '@anticrm/recruit'
|
||||||
import { ChannelsView } from '@anticrm/contact-resources'
|
import { showPanel } from '@anticrm/ui'
|
||||||
import contact, { Channel, formatName } from '@anticrm/contact'
|
import view from '@anticrm/view'
|
||||||
|
|
||||||
export let candidate: Candidate
|
export let candidate: Candidate
|
||||||
|
|
||||||
@ -34,7 +36,9 @@
|
|||||||
)
|
)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="flex-col h-full card-container">
|
<div class="flex-col h-full card-container" on:click={() => {
|
||||||
|
showPanel(view.component.EditDoc, candidate._id, candidate._class, 'full')
|
||||||
|
}}>
|
||||||
<div class="label">CANDIDATE</div>
|
<div class="label">CANDIDATE</div>
|
||||||
<Avatar avatar={candidate.avatar} size={'large'} />
|
<Avatar avatar={candidate.avatar} size={'large'} />
|
||||||
{#if candidate}
|
{#if candidate}
|
||||||
@ -47,11 +51,19 @@
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.card-container {
|
.card-container {
|
||||||
|
cursor: pointer;
|
||||||
padding: 1rem 1.5rem 1.25rem;
|
padding: 1rem 1.5rem 1.25rem;
|
||||||
background-color: var(--theme-button-bg-enabled);
|
background-color: var(--theme-button-bg-enabled);
|
||||||
border: 1px solid var(--theme-bg-accent-color);
|
border: 1px solid var(--theme-bg-accent-color);
|
||||||
border-radius: .75rem;
|
border-radius: .75rem;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
&:hover .name {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
margin-bottom: 1.75rem;
|
margin-bottom: 1.75rem;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
@ -17,6 +17,7 @@ import { Ref, Space } from '@anticrm/core'
|
|||||||
import type { IntlString, StatusCode } from '@anticrm/platform'
|
import type { IntlString, StatusCode } from '@anticrm/platform'
|
||||||
import { mergeIds } from '@anticrm/platform'
|
import { mergeIds } from '@anticrm/platform'
|
||||||
import recruit, { recruitId } from '@anticrm/recruit'
|
import recruit, { recruitId } from '@anticrm/recruit'
|
||||||
|
import { AnyComponent } from '@anticrm/ui'
|
||||||
|
|
||||||
export default mergeIds(recruitId, recruit, {
|
export default mergeIds(recruitId, recruit, {
|
||||||
status: {
|
status: {
|
||||||
@ -60,5 +61,8 @@ export default mergeIds(recruitId, recruit, {
|
|||||||
},
|
},
|
||||||
space: {
|
space: {
|
||||||
CandidatesPublic: '' as Ref<Space>
|
CandidatesPublic: '' as Ref<Space>
|
||||||
|
},
|
||||||
|
component: {
|
||||||
|
EditVacancy: '' as AnyComponent
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user