}
handleModRemoveShow(i: CommentNode) {
- i.state.showRemoveDialog = true;
+ i.state.showRemoveDialog = !i.state.showRemoveDialog;
+ i.state.showBanDialog = false;
i.setState(i.state);
}
}
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);
}
}
handleModRemoveShow(i: PostListing) {
- i.state.showRemoveDialog = true;
+ i.state.showRemoveDialog = !i.state.showRemoveDialog;
+ i.state.showBanDialog = false;
i.setState(i.state);
}
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);
}