From 4bebc18c679232e7dd3255d639924739698073f1 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Wed, 21 May 2025 16:25:11 +0200 Subject: [PATCH] Fix: moderation notes: fix filter button wrongly displayed on notes without associated occupant. Also fix typo. --- CHANGELOG.md | 1 + conversejs/custom/plugins/notes/components/muc-note-view.js | 2 +- conversejs/custom/plugins/notes/templates/muc-note.js | 4 ++-- conversejs/custom/plugins/notes/templates/muc-notes.js | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 714e45f3..e11a967c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ * Fix #503: set custom emojis max height to text height + bigger when posted alone * Fix: Converse bottom panel messages not visible on new Peertube v7 theme (for example for muted users) * Fix #75: New short video urls makes it difficult to use the settings «Activate chat for these videos». +* Fix: moderation notes: fix filter button wrongly displayed on notes without associated occupant. ## 12.0.4 diff --git a/conversejs/custom/plugins/notes/components/muc-note-view.js b/conversejs/custom/plugins/notes/components/muc-note-view.js index 260b31e3..3e80130e 100644 --- a/conversejs/custom/plugins/notes/components/muc-note-view.js +++ b/conversejs/custom/plugins/notes/components/muc-note-view.js @@ -14,7 +14,7 @@ export default class MUCNoteView extends CustomElement { return { model: { type: Object, attribute: true }, edit: { type: Boolean, attribute: false }, - is_ocupant_filter: { type: Boolean, attribute: true } + is_occupant_filter: { type: Boolean, attribute: true } } } diff --git a/conversejs/custom/plugins/notes/templates/muc-note.js b/conversejs/custom/plugins/notes/templates/muc-note.js index d900d442..3139055f 100644 --- a/conversejs/custom/plugins/notes/templates/muc-note.js +++ b/conversejs/custom/plugins/notes/templates/muc-note.js @@ -25,7 +25,7 @@ export function tplMucNote (el, note) { aboutOccupant ? html` ` @@ -34,7 +34,7 @@ export function tplMucNote (el, note) {
${note.get('description') ?? ''}
${ - aboutOccupant && el.is_ocupant_filter + !aboutOccupant || el.is_occupant_filter ? '' : html`