mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-22 19:01:26 +00:00
Fixing mod ban removeData default.
This commit is contained in:
parent
4aef29c186
commit
ac3b9e68f3
2 changed files with 4 additions and 4 deletions
|
@ -94,7 +94,7 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
|
|||
showRemoveDialog: false,
|
||||
removeReason: null,
|
||||
showBanDialog: false,
|
||||
removeData: null,
|
||||
removeData: false,
|
||||
banReason: null,
|
||||
banExpires: null,
|
||||
banType: BanType.Community,
|
||||
|
|
|
@ -80,7 +80,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
|||
showRemoveDialog: false,
|
||||
removeReason: null,
|
||||
showBanDialog: false,
|
||||
removeData: null,
|
||||
removeData: false,
|
||||
banReason: null,
|
||||
banExpires: null,
|
||||
banType: BanType.Community,
|
||||
|
@ -1284,7 +1284,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
|||
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,
|
||||
|
@ -1350,7 +1350,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
|||
i.handleModBanBothSubmit(i);
|
||||
}
|
||||
|
||||
handleModBanBothSubmit(i: PostListing) {
|
||||
handleModBanBothSubmit(i: PostListing, event?: any) {
|
||||
event.preventDefault();
|
||||
|
||||
if (i.state.banType == BanType.Community) {
|
||||
|
|
Loading…
Reference in a new issue