2022-04-28 08:11:09 +00:00
|
|
|
|
<script lang="ts">
|
2022-09-21 08:08:25 +00:00
|
|
|
|
import tags, { selectedTagElements, TagElement } from '@hcengineering/tags'
|
2023-04-21 16:24:45 +00:00
|
|
|
|
import { Component, getCurrentResolvedLocation, navigate } from '@hcengineering/ui'
|
2022-02-16 09:02:31 +00:00
|
|
|
|
import recruit from '../plugin'
|
2022-04-28 08:11:09 +00:00
|
|
|
|
|
2022-04-29 05:27:17 +00:00
|
|
|
|
function onTag (tag: TagElement): void {
|
2022-04-28 08:11:09 +00:00
|
|
|
|
selectedTagElements.set([tag._id])
|
2023-04-21 16:24:45 +00:00
|
|
|
|
const loc = getCurrentResolvedLocation()
|
2022-11-08 16:28:38 +00:00
|
|
|
|
loc.path[2] = 'recruit'
|
2022-07-06 07:02:01 +00:00
|
|
|
|
loc.path[3] = 'candidates'
|
|
|
|
|
loc.path.length = 4
|
2022-04-28 08:11:09 +00:00
|
|
|
|
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,
|
2022-06-09 12:50:51 +00:00
|
|
|
|
icon: recruit.icon.Skills,
|
2022-04-28 08:11:09 +00:00
|
|
|
|
item: recruit.string.SkillLabel,
|
|
|
|
|
key: 'skills',
|
|
|
|
|
сreateItemLabel: recruit.string.SkillCreateLabel,
|
2022-11-02 08:50:14 +00:00
|
|
|
|
onTag
|
2022-04-28 08:11:09 +00:00
|
|
|
|
}}
|
|
|
|
|
/>
|