Fix: moderation notes: fix filter button wrongly displayed on notes without associated occupant.

Also fix typo.
This commit is contained in:
John Livingston 2025-05-21 16:25:11 +02:00
parent 562e6a16e2
commit 4bebc18c67
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
4 changed files with 5 additions and 4 deletions

View File

@ -13,6 +13,7 @@
* Fix #503: set custom emojis max height to text height + bigger when posted alone * 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: 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 #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 ## 12.0.4

View File

@ -14,7 +14,7 @@ export default class MUCNoteView extends CustomElement {
return { return {
model: { type: Object, attribute: true }, model: { type: Object, attribute: true },
edit: { type: Boolean, attribute: false }, edit: { type: Boolean, attribute: false },
is_ocupant_filter: { type: Boolean, attribute: true } is_occupant_filter: { type: Boolean, attribute: true }
} }
} }

View File

@ -25,7 +25,7 @@ export function tplMucNote (el, note) {
aboutOccupant aboutOccupant
? html` ? html`
<livechat-converse-muc-note-occupant <livechat-converse-muc-note-occupant
.full_display=${el.is_ocupant_filter} .full_display=${el.is_occupant_filter}
.model=${aboutOccupant} .model=${aboutOccupant}
.note=${note} .note=${note}
></livechat-converse-muc-note-occupant>` ></livechat-converse-muc-note-occupant>`
@ -34,7 +34,7 @@ export function tplMucNote (el, note) {
<div class="note-description">${note.get('description') ?? ''}</div> <div class="note-description">${note.get('description') ?? ''}</div>
</div> </div>
${ ${
aboutOccupant && el.is_ocupant_filter !aboutOccupant || el.is_occupant_filter
? '' ? ''
: html` : html`
<button type="button" class="note-action" @click=${ev => { <button type="button" class="note-action" @click=${ev => {

View File

@ -77,7 +77,7 @@ export default function tplMucNotes (el, notes) {
? '' ? ''
: html`<livechat-converse-muc-note : html`<livechat-converse-muc-note
.model=${note} .model=${note}
.is_ocupant_filter=${!!el.occupant_filter} .is_occupant_filter=${!!el.occupant_filter}
></livechat-converse-muc-note>` ></livechat-converse-muc-note>`
}) })
}` }`