misc: add |local
This commit is contained in:
1 parent
10af840273
commit
1e4e9ae1de
2 files changed
+2
-3
No files matched your search
@@ -4,5 +4,4 @@ export const isMutable = (post: PostView, me: PersonView) =>
|
|||||||
(me.person.admin && post.post.local) || me.person.id == post.creator.id
|
(me.person.admin && post.post.local) || me.person.id == post.creator.id
|
||||||
|
|
||||||
export const isCommentMutable = (comment: CommentView, me: PersonView) =>
|
export const isCommentMutable = (comment: CommentView, me: PersonView) =>
|
||||||
(me.person.admin && comment.comment.local) ||
|
|
||||||
me.person.id == comment.creator.id
|
me.person.id == comment.creator.id
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
<div
|
<div
|
||||||
class="flex flex-row gap-4 items-center py-4 justify-between"
|
class="flex flex-row gap-4 items-center py-4 justify-between"
|
||||||
animate:flip={{ duration: 250 }}
|
animate:flip={{ duration: 250 }}
|
||||||
out:slide={{ axis: 'y' }}
|
out:slide|local={{ axis: 'y' }}
|
||||||
>
|
>
|
||||||
<UserLink user={block.target} avatar badges />
|
<UserLink user={block.target} avatar badges />
|
||||||
<Button size="square-md" on:click={() => action(block)}>
|
<Button size="square-md" on:click={() => action(block)}>
|
||||||
@@ -95,7 +95,7 @@
|
|||||||
<div
|
<div
|
||||||
class="flex flex-row gap-4 items-center py-4 justify-between"
|
class="flex flex-row gap-4 items-center py-4 justify-between"
|
||||||
animate:flip={{ duration: 250 }}
|
animate:flip={{ duration: 250 }}
|
||||||
out:slide={{ axis: 'y' }}
|
out:slide|local={{ axis: 'y' }}
|
||||||
>
|
>
|
||||||
<CommunityLink community={block.community} avatar />
|
<CommunityLink community={block.community} avatar />
|
||||||
<Button size="square-md" on:click={() => action(block)}>
|
<Button size="square-md" on:click={() => action(block)}>
|
||||||
|
|||||||
Reference in new issue
Block a user