UBERF-31: Fix comment edit (#3853)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2023-10-18 18:29:10 +07:00 committed by GitHub
parent 343d72af0f
commit 780f48d04a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>