mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-26 06:11:15 +00:00
Add missing modlog reasons
This commit is contained in:
parent
8b478e9712
commit
fa62ce39ea
2 changed files with 5 additions and 2 deletions
|
@ -1461,6 +1461,7 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
|
||||||
comment_id: i.commentId,
|
comment_id: i.commentId,
|
||||||
removed: !i.commentView.comment.removed,
|
removed: !i.commentView.comment.removed,
|
||||||
auth: myAuthRequired(),
|
auth: myAuthRequired(),
|
||||||
|
reason: i.state.removeReason,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1415,6 +1415,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
UserService.Instance.myUserInfo?.local_user_view.person.id
|
UserService.Instance.myUserInfo?.local_user_view.person.id
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
handleEditClick(i: PostListing) {
|
handleEditClick(i: PostListing) {
|
||||||
i.setState({ showEdit: true });
|
i.setState({ showEdit: true });
|
||||||
}
|
}
|
||||||
|
@ -1538,6 +1539,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
post_id: i.postView.post.id,
|
post_id: i.postView.post.id,
|
||||||
removed: !i.postView.post.removed,
|
removed: !i.postView.post.removed,
|
||||||
auth: myAuthRequired(),
|
auth: myAuthRequired(),
|
||||||
|
reason: i.state.removeReason,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1609,13 +1611,13 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
handlePurgeSubmit(i: PostListing, event: any) {
|
handlePurgeSubmit(i: PostListing, event: any) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
i.setState({ purgeLoading: true });
|
i.setState({ purgeLoading: true });
|
||||||
if (i.state.purgeType == PurgeType.Person) {
|
if (i.state.purgeType === PurgeType.Person) {
|
||||||
i.props.onPurgePerson({
|
i.props.onPurgePerson({
|
||||||
person_id: i.postView.creator.id,
|
person_id: i.postView.creator.id,
|
||||||
reason: i.state.purgeReason,
|
reason: i.state.purgeReason,
|
||||||
auth: myAuthRequired(),
|
auth: myAuthRequired(),
|
||||||
});
|
});
|
||||||
} else if (i.state.purgeType == PurgeType.Post) {
|
} else if (i.state.purgeType === PurgeType.Post) {
|
||||||
i.props.onPurgePost({
|
i.props.onPurgePost({
|
||||||
post_id: i.postView.post.id,
|
post_id: i.postView.post.id,
|
||||||
reason: i.state.purgeReason,
|
reason: i.state.purgeReason,
|
||||||
|
|
Loading…
Reference in a new issue