[FIX] website_forum: update flagged posts count

When flagging a post, moderators should see the flagged moderation queue
counter appear/increment.

We renamed the span in 21531bd9 and forgot to update this reference.

Task-3349373

closes odoo/odoo#151512

X-original-commit: 720d7b53e7d1a0944415a6c668f4eb3ba527dac8
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Signed-off-by: Florian Charlier (flch) <flch@odoo.com>
This commit is contained in:
Florian Charlier
2024-01-29 13:44:36 +00:00
parent 8517a66b14
commit 5429aa161f
@@ -346,7 +346,7 @@ publicWidget.registry.websiteForum = publicWidget.Widget.extend({
} else if (data.success) {
const child = elem.firstElementChild;
if (data.success === 'post_flagged_moderator') {
const countFlaggedPosts = this.el.querySelector('#count_flagged_posts');
const countFlaggedPosts = this.el.querySelector('#count_posts_queue_flagged');
elem.innerText = _t(' Flagged');
elem.prepend(child);
if (countFlaggedPosts) {