2021-12-06 10:07:08 +00:00
|
|
|
<!--
|
|
|
|
// Copyright © 2020, 2021 Anticrm Platform Contributors.
|
|
|
|
// Copyright © 2021 Hardcore Engineering Inc.
|
2021-12-07 09:05:52 +00:00
|
|
|
//
|
2021-12-06 10:07:08 +00:00
|
|
|
// 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
|
2021-12-07 09:05:52 +00:00
|
|
|
//
|
2021-12-06 10:07:08 +00:00
|
|
|
// 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.
|
2021-12-07 09:05:52 +00:00
|
|
|
//
|
2021-12-06 10:07:08 +00:00
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
-->
|
|
|
|
<script lang="ts">
|
2022-09-21 08:08:25 +00:00
|
|
|
import { Organization } from '@hcengineering/contact'
|
2023-03-15 14:06:03 +00:00
|
|
|
import { DocNavLink } from '@hcengineering/view-resources'
|
2021-12-07 09:05:52 +00:00
|
|
|
import Company from './icons/Company.svelte'
|
2021-12-06 10:07:08 +00:00
|
|
|
|
2022-01-18 10:21:32 +00:00
|
|
|
export let value: Organization
|
2022-01-31 09:07:05 +00:00
|
|
|
export let inline: boolean = false
|
2021-12-06 10:07:08 +00:00
|
|
|
</script>
|
|
|
|
|
2022-01-12 09:18:50 +00:00
|
|
|
{#if value}
|
2023-03-15 14:06:03 +00:00
|
|
|
<DocNavLink {inline} object={value}>
|
|
|
|
<div class="flex-presenter">
|
|
|
|
<div class="icon circle"><Company size={'small'} /></div>
|
|
|
|
<span class="label">{value.name}</span>
|
|
|
|
</div>
|
|
|
|
</DocNavLink>
|
2022-01-12 09:18:50 +00:00
|
|
|
{/if}
|