mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 19:58:09 +00:00
UBERF-31: Fix comment edit (#3853)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
343d72af0f
commit
780f48d04a
@ -65,6 +65,8 @@
|
||||
let edit: boolean = false
|
||||
let showDiff: boolean = false
|
||||
|
||||
const currentAccount = getCurrentAccount() as PersonAccount
|
||||
|
||||
$: if (tx.tx._id !== ptx?.tx._id) {
|
||||
if (tx.tx.modifiedBy !== account?._id) {
|
||||
account = undefined
|
||||
@ -326,7 +328,7 @@
|
||||
{#if isComment}
|
||||
<div class="buttons-group">
|
||||
<!-- <Like /> -->
|
||||
{#if tx.tx.modifiedBy === getCurrentAccount()._id}
|
||||
{#if account?.person === currentAccount?.person}
|
||||
<ActionIcon icon={IconMoreH} size={'small'} action={showMenu} />
|
||||
{/if}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user