Skip to content

Commit

Permalink
chore: increase extensibility in frontend (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideIadeluca authored Jan 10, 2025
1 parent b160a12 commit 84691d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/src/forum/components/SolvedFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class SolvedFilter extends Component<SolvedFilterAttrs> {
if (value === '0') {
delete app.discussions.bestAnswer;
}
app.discussions.refresh();
this.reloadDiscussions();
},
},
app.translator.trans(`fof-best-answer.forum.filter.${label}_label`)
Expand All @@ -45,6 +45,10 @@ export default class SolvedFilter extends Component<SolvedFilterAttrs> {
);
}

reloadDiscussions(): void {
app.discussions.refresh();
}

shouldShowFilter() {
const { alwaysShow } = this.attrs;

Expand Down

0 comments on commit 84691d7

Please sign in to comment.