From 215a0425da2c10f86beb6ff1595b288dc0a71b67 Mon Sep 17 00:00:00 2001 From: Davide Iadeluca Date: Fri, 10 Jan 2025 09:08:57 +0100 Subject: [PATCH] chore: increase extensibility in frontend --- js/src/forum/components/SolvedFilter.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/src/forum/components/SolvedFilter.tsx b/js/src/forum/components/SolvedFilter.tsx index 370b828..c46f534 100644 --- a/js/src/forum/components/SolvedFilter.tsx +++ b/js/src/forum/components/SolvedFilter.tsx @@ -36,7 +36,7 @@ export default class SolvedFilter extends Component { if (value === '0') { delete app.discussions.bestAnswer; } - app.discussions.refresh(); + this.reloadDiscussions(); }, }, app.translator.trans(`fof-best-answer.forum.filter.${label}_label`) @@ -45,6 +45,10 @@ export default class SolvedFilter extends Component { ); } + reloadDiscussions(): void { + app.discussions.refresh(); + } + shouldShowFilter() { const { alwaysShow } = this.attrs;