2021-09-26 11:18:19 +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">
|
|
|
|
|
2021-09-26 13:48:53 +00:00
|
|
|
import type { Candidate } from '@anticrm/recruit'
|
2021-09-27 09:06:55 +00:00
|
|
|
import { IconFile, Tooltip } from '@anticrm/ui'
|
2021-09-26 14:17:05 +00:00
|
|
|
import ApplicationsPopup from './ApplicationsPopup.svelte'
|
2021-09-26 11:18:19 +00:00
|
|
|
|
2021-09-26 13:48:53 +00:00
|
|
|
export let value: Candidate
|
2021-09-26 11:18:19 +00:00
|
|
|
|
|
|
|
</script>
|
|
|
|
|
2021-09-26 11:20:46 +00:00
|
|
|
{#if value.applications && value.applications > 0}
|
2021-09-27 09:06:55 +00:00
|
|
|
<Tooltip label={'Applications'} component={ApplicationsPopup} props={{ value }}>
|
2021-12-01 18:45:45 +00:00
|
|
|
<div class="sm-tool-icon">
|
|
|
|
<span class="icon"><IconFile size={'small'} /></span> {value.applications}
|
2021-09-27 08:06:05 +00:00
|
|
|
</div>
|
|
|
|
</Tooltip>
|
2021-09-26 11:18:19 +00:00
|
|
|
{/if}
|