Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
Denis Bykhov 2022-02-25 19:20:23 +06:00 committed by GitHub
parent c7bfa1b295
commit bddd5f0628
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@
import type { TxViewlet } from '@anticrm/activity'
import activity from '../plugin'
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 { getClient } from '@anticrm/presentation'
import { Component, Icon, IconEdit, IconMoreH, Label, Menu, ShowMore, showPopup, TimeSince } from '@anticrm/ui'
@ -135,9 +135,11 @@
{#if tx.updated}
<Label label={activity.string.Edited} />
{/if}
<div class="menuOptions" on:click={(ev) => showMenu(ev)}>
<IconMoreH size={'medium'} />
</div>
{#if tx.tx.modifiedBy === getCurrentAccount()._id}
<div class="menuOptions" on:click={(ev) => showMenu(ev)}>
<IconMoreH size={'medium'} />
</div>
{/if}
</div>
{:else if viewlet && viewlet.label}
<div class="flex-center">