mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-05 06:00:31 +00:00
parent
0b7220b3f4
commit
b65a3693d4
@ -47,8 +47,6 @@ export class Communities extends Component<any, CommunitiesState> {
|
|||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
document.title = "Communities - Lemmy";
|
document.title = "Communities - Lemmy";
|
||||||
let table = document.querySelector('#community_table');
|
|
||||||
Sortable.initTable(table);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Necessary for back button for some reason
|
// Necessary for back button for some reason
|
||||||
@ -176,6 +174,8 @@ export class Communities extends Component<any, CommunitiesState> {
|
|||||||
this.state.loading = false;
|
this.state.loading = false;
|
||||||
window.scrollTo(0,0);
|
window.scrollTo(0,0);
|
||||||
this.setState(this.state);
|
this.setState(this.state);
|
||||||
|
let table = document.querySelector('#community_table');
|
||||||
|
Sortable.initTable(table);
|
||||||
} else if (op == UserOperation.FollowCommunity) {
|
} else if (op == UserOperation.FollowCommunity) {
|
||||||
let res: CommunityResponse = msg;
|
let res: CommunityResponse = msg;
|
||||||
let found = this.state.communities.find(c => c.id == res.community.id);
|
let found = this.state.communities.find(c => c.id == res.community.id);
|
||||||
|
Loading…
Reference in New Issue
Block a user