2021-09-11 09:32:01 +00:00
|
|
|
<!--
|
|
|
|
// Copyright © 2020, 2021 Anticrm Platform Contributors.
|
|
|
|
// Copyright © 2021 Hardcore Engineering Inc.
|
|
|
|
//
|
|
|
|
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License. You may
|
|
|
|
// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
//
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
|
|
|
|
import type { Applicant } from '@anticrm/recruit'
|
2021-10-24 11:01:40 +00:00
|
|
|
import { closeTooltip, IconFile, showPopup } from '@anticrm/ui'
|
2021-09-27 10:32:36 +00:00
|
|
|
import EditApplication from './EditApplication.svelte'
|
2021-10-14 09:44:25 +00:00
|
|
|
import { getClient } from '@anticrm/presentation'
|
2021-09-11 09:32:01 +00:00
|
|
|
|
2021-09-27 10:32:36 +00:00
|
|
|
export let value: Applicant
|
|
|
|
|
2021-10-14 09:44:25 +00:00
|
|
|
const client = getClient()
|
|
|
|
const shortLabel = client.getHierarchy().getClass(value._class).shortLabel
|
|
|
|
|
2021-11-29 11:32:17 +00:00
|
|
|
function show () {
|
2021-10-24 11:01:40 +00:00
|
|
|
closeTooltip()
|
2021-09-27 10:32:36 +00:00
|
|
|
showPopup(EditApplication, { _id: value._id }, 'full')
|
|
|
|
}
|
2021-09-11 09:32:01 +00:00
|
|
|
|
|
|
|
</script>
|
|
|
|
|
2021-10-14 15:51:49 +00:00
|
|
|
<div class="sm-tool-icon" on:click={show}>
|
2021-12-02 09:06:02 +00:00
|
|
|
<span class="icon"><IconFile size={'small'}/></span> {shortLabel}-{value.number}
|
2021-09-27 10:32:36 +00:00
|
|
|
</div>
|