mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-06 07:46:32 +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 edit: boolean = false
|
||||||
let showDiff: boolean = false
|
let showDiff: boolean = false
|
||||||
|
|
||||||
|
const currentAccount = getCurrentAccount() as PersonAccount
|
||||||
|
|
||||||
$: if (tx.tx._id !== ptx?.tx._id) {
|
$: if (tx.tx._id !== ptx?.tx._id) {
|
||||||
if (tx.tx.modifiedBy !== account?._id) {
|
if (tx.tx.modifiedBy !== account?._id) {
|
||||||
account = undefined
|
account = undefined
|
||||||
@ -326,7 +328,7 @@
|
|||||||
{#if isComment}
|
{#if isComment}
|
||||||
<div class="buttons-group">
|
<div class="buttons-group">
|
||||||
<!-- <Like /> -->
|
<!-- <Like /> -->
|
||||||
{#if tx.tx.modifiedBy === getCurrentAccount()._id}
|
{#if account?.person === currentAccount?.person}
|
||||||
<ActionIcon icon={IconMoreH} size={'small'} action={showMenu} />
|
<ActionIcon icon={IconMoreH} size={'small'} action={showMenu} />
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user