showRemoveDialog: false,
removeReason: null,
showBanDialog: false,
- removeData: null,
+ removeData: false,
banReason: null,
banExpires: null,
banType: BanType.Community,
i.setState(i.state);
}
- handleModRemoveSubmit(i: PostListing) {
+ handleModRemoveSubmit(i: PostListing, event: any) {
event.preventDefault();
let form: RemovePost = {
post_id: i.props.post_view.post.id,
i.handleModBanBothSubmit(i);
}
- handleModBanBothSubmit(i: PostListing) {
+ handleModBanBothSubmit(i: PostListing, event?: any) {
event.preventDefault();
if (i.state.banType == BanType.Community) {