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} ${selectOption.label ?? selectOption.text}
</span> </span>
${selectOption.unreadMessages ? ${selectOption.unreadMessages ?
html` html`
<sl-badge pill>${selectOption.unreadMessages}</sl-badge> <sl-badge pill variant="danger">${selectOption.unreadMessages}</sl-badge>
` : nothing} ` : nothing}
${selectOption.children ? repeat(selectOption.children, this._optionTemplate) : (selectOption.item ? repeat(selectOption.item, this._optionTemplate) : nothing)} ${selectOption.children ? repeat(selectOption.children, this._optionTemplate) : (selectOption.item ? repeat(selectOption.item, this._optionTemplate) : nothing)}
</sl-tree-item>` </sl-tree-item>`