mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-29 14:34:12 +03:00
1034 fix (#1061)
Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
parent
c7bfa1b295
commit
bddd5f0628
@ -17,7 +17,7 @@
|
|||||||
import type { TxViewlet } from '@anticrm/activity'
|
import type { TxViewlet } from '@anticrm/activity'
|
||||||
import activity from '../plugin'
|
import activity from '../plugin'
|
||||||
import contact, { EmployeeAccount, formatName } from '@anticrm/contact'
|
import contact, { EmployeeAccount, formatName } from '@anticrm/contact'
|
||||||
import core, { AnyAttribute, Doc, Ref } from '@anticrm/core'
|
import core, { AnyAttribute, Doc, getCurrentAccount, Ref } from '@anticrm/core'
|
||||||
import { Asset, getResource } from '@anticrm/platform'
|
import { Asset, getResource } from '@anticrm/platform'
|
||||||
import { getClient } from '@anticrm/presentation'
|
import { getClient } from '@anticrm/presentation'
|
||||||
import { Component, Icon, IconEdit, IconMoreH, Label, Menu, ShowMore, showPopup, TimeSince } from '@anticrm/ui'
|
import { Component, Icon, IconEdit, IconMoreH, Label, Menu, ShowMore, showPopup, TimeSince } from '@anticrm/ui'
|
||||||
@ -135,9 +135,11 @@
|
|||||||
{#if tx.updated}
|
{#if tx.updated}
|
||||||
<Label label={activity.string.Edited} />
|
<Label label={activity.string.Edited} />
|
||||||
{/if}
|
{/if}
|
||||||
|
{#if tx.tx.modifiedBy === getCurrentAccount()._id}
|
||||||
<div class="menuOptions" on:click={(ev) => showMenu(ev)}>
|
<div class="menuOptions" on:click={(ev) => showMenu(ev)}>
|
||||||
<IconMoreH size={'medium'} />
|
<IconMoreH size={'medium'} />
|
||||||
</div>
|
</div>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{:else if viewlet && viewlet.label}
|
{:else if viewlet && viewlet.label}
|
||||||
<div class="flex-center">
|
<div class="flex-center">
|
||||||
|
Loading…
Reference in New Issue
Block a user