mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-24 10:07:29 +00:00
parent
0b3d7fbde4
commit
5de39ca39d
|
@ -1111,7 +1111,8 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
|
|||
}
|
||||
|
||||
handleModRemoveShow(i: CommentNode) {
|
||||
i.state.showRemoveDialog = true;
|
||||
i.state.showRemoveDialog = !i.state.showRemoveDialog;
|
||||
i.state.showBanDialog = false;
|
||||
i.setState(i.state);
|
||||
}
|
||||
|
||||
|
@ -1167,14 +1168,16 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
|
|||
}
|
||||
|
||||
handleModBanFromCommunityShow(i: CommentNode) {
|
||||
i.state.showBanDialog = !i.state.showBanDialog;
|
||||
i.state.showBanDialog = true;
|
||||
i.state.banType = BanType.Community;
|
||||
i.state.showRemoveDialog = false;
|
||||
i.setState(i.state);
|
||||
}
|
||||
|
||||
handleModBanShow(i: CommentNode) {
|
||||
i.state.showBanDialog = !i.state.showBanDialog;
|
||||
i.state.showBanDialog = true;
|
||||
i.state.banType = BanType.Site;
|
||||
i.state.showRemoveDialog = false;
|
||||
i.setState(i.state);
|
||||
}
|
||||
|
||||
|
|
|
@ -1425,7 +1425,8 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
|||
}
|
||||
|
||||
handleModRemoveShow(i: PostListing) {
|
||||
i.state.showRemoveDialog = true;
|
||||
i.state.showRemoveDialog = !i.state.showRemoveDialog;
|
||||
i.state.showBanDialog = false;
|
||||
i.setState(i.state);
|
||||
}
|
||||
|
||||
|
@ -1474,12 +1475,14 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
|||
handleModBanFromCommunityShow(i: PostListing) {
|
||||
i.state.showBanDialog = true;
|
||||
i.state.banType = BanType.Community;
|
||||
i.state.showRemoveDialog = false;
|
||||
i.setState(i.state);
|
||||
}
|
||||
|
||||
handleModBanShow(i: PostListing) {
|
||||
i.state.showBanDialog = true;
|
||||
i.state.banType = BanType.Site;
|
||||
i.state.showRemoveDialog = false;
|
||||
i.setState(i.state);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue