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 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}
<div class="menuOptions" on:click={(ev) => showMenu(ev)}> {#if tx.tx.modifiedBy === getCurrentAccount()._id}
<IconMoreH size={'medium'} /> <div class="menuOptions" on:click={(ev) => showMenu(ev)}>
</div> <IconMoreH size={'medium'} />
</div>
{/if}
</div> </div>
{:else if viewlet && viewlet.label} {:else if viewlet && viewlet.label}
<div class="flex-center"> <div class="flex-center">