mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 20:31:13 +00:00
partially revert change
This commit is contained in:
parent
500a0113c4
commit
2b1647c9b8
1 changed files with 20 additions and 0 deletions
|
@ -167,6 +167,26 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
this.handleEditCancel = this.handleEditCancel.bind(this);
|
this.handleEditCancel = this.handleEditCancel.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
componentWillReceiveProps(nextProps: PostListingProps) {
|
||||||
|
if (this.props !== nextProps) {
|
||||||
|
this.setState({
|
||||||
|
purgeLoading: false,
|
||||||
|
reportLoading: false,
|
||||||
|
blockLoading: false,
|
||||||
|
lockLoading: false,
|
||||||
|
deleteLoading: false,
|
||||||
|
removeLoading: false,
|
||||||
|
saveLoading: false,
|
||||||
|
featureCommunityLoading: false,
|
||||||
|
featureLocalLoading: false,
|
||||||
|
banLoading: false,
|
||||||
|
addModLoading: false,
|
||||||
|
addAdminLoading: false,
|
||||||
|
transferLoading: false,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
get postView(): PostView {
|
get postView(): PostView {
|
||||||
return this.props.post_view;
|
return this.props.post_view;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue