fix: unread level
This commit is contained in:
parent
e2656cc661
commit
4d88f3d2e6
@ -10,7 +10,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||||||
if (event.detail && event.detail.resource && event.detail.resource['@id']) {
|
if (event.detail && event.detail.resource && event.detail.resource['@id']) {
|
||||||
const badge = document.querySelector(`solid-badge[data-src="${event.detail.resource['@id']}"]`);
|
const badge = document.querySelector(`solid-badge[data-src="${event.detail.resource['@id']}"]`);
|
||||||
if (badge) {
|
if (badge) {
|
||||||
badge.parentElement.parentElement.classList.remove('unread');
|
badge.parentElement.parentElement.parentElement.classList.remove('unread');
|
||||||
const project = badge.parentElement.parentElement.querySelector('.unread');
|
const project = badge.parentElement.parentElement.querySelector('.unread');
|
||||||
if (project) project.classList.remove('unread');
|
if (project) project.classList.remove('unread');
|
||||||
}
|
}
|
||||||
|
@ -2,5 +2,5 @@ if componentSet.has('circles') || componentSet.has('projects')
|
|||||||
solid-widget(name='hubl-menu-publicprivate')
|
solid-widget(name='hubl-menu-publicprivate')
|
||||||
template
|
template
|
||||||
div(
|
div(
|
||||||
class="${value == 'Public' ? 'bold-on-unread text-large': 'text-simple-line-icons text-xsmall'}"
|
class="${value == 'Public' ? 'text-large': 'text-simple-line-icons text-xsmall'}"
|
||||||
) ${value == 'Public' ? '#' : ''}
|
) ${value == 'Public' ? '#' : ''}
|
Loading…
Reference in New Issue
Block a user