2022-04-28 08:11:09 +00:00
|
|
|
|
<script lang="ts">
|
|
|
|
|
import tags, { selectedTagElements, TagElement } from '@anticrm/tags'
|
|
|
|
|
import { Component, getCurrentLocation, navigate } from '@anticrm/ui'
|
2022-02-16 09:02:31 +00:00
|
|
|
|
import recruit from '../plugin'
|
2022-04-28 08:11:09 +00:00
|
|
|
|
|
|
|
|
|
function onTag (tag: TagElement):void {
|
|
|
|
|
selectedTagElements.set([tag._id])
|
|
|
|
|
const loc = getCurrentLocation()
|
|
|
|
|
loc.path[2] = 'candidates'
|
|
|
|
|
loc.path.length = 3
|
|
|
|
|
navigate(loc)
|
|
|
|
|
}
|
2022-02-16 09:02:31 +00:00
|
|
|
|
</script>
|
|
|
|
|
|
2022-04-28 08:11:09 +00:00
|
|
|
|
<Component
|
|
|
|
|
is={tags.component.TagsView}
|
|
|
|
|
props={{
|
|
|
|
|
targetClass: recruit.mixin.Candidate,
|
|
|
|
|
title: recruit.string.SkillsLabel,
|
|
|
|
|
item: recruit.string.SkillLabel,
|
|
|
|
|
key: 'skills',
|
|
|
|
|
сreateItemLabel: recruit.string.SkillCreateLabel,
|
|
|
|
|
onTag: onTag
|
|
|
|
|
}}
|
|
|
|
|
/>
|