change unread badge to red

This commit is contained in:
milan 2024-03-07 14:18:55 +01:00
parent b6803b42c6
commit 1d591d5d2b

View File

@ -698,9 +698,9 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement)
${selectOption.label ?? selectOption.text}
</span>
${selectOption.unreadMessages ?
html`
<sl-badge pill>${selectOption.unreadMessages}</sl-badge>
` : nothing}
html`
<sl-badge pill variant="danger">${selectOption.unreadMessages}</sl-badge>
` : nothing}
${selectOption.children ? repeat(selectOption.children, this._optionTemplate) : (selectOption.item ? repeat(selectOption.item, this._optionTemplate) : nothing)}
</sl-tree-item>`