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'
|
|
|
|
import { getPanelURI } from '@hcengineering/ui'
|
|
|
|
import view from '@hcengineering/view'
|
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}
|
2022-03-18 04:58:10 +00:00
|
|
|
<a
|
|
|
|
class="flex-presenter"
|
|
|
|
class:inline-presenter={inline}
|
2022-04-22 06:30:34 +00:00
|
|
|
href="#{getPanelURI(view.component.EditDoc, value._id, value._class, 'content')}"
|
2022-03-18 04:58:10 +00:00
|
|
|
>
|
2022-04-09 03:46:40 +00:00
|
|
|
<div class="icon circle"><Company size={'small'} /></div>
|
2022-01-31 09:07:05 +00:00
|
|
|
<span class="label">{value.name}</span>
|
2022-03-18 04:58:10 +00:00
|
|
|
</a>
|
2022-01-12 09:18:50 +00:00
|
|
|
{/if}
|