Merge remote-tracking branch 'origin/master' into feature/rework-left-menu
This commit is contained in:
commit
45fda6a2c4
@ -2,7 +2,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||||||
window.addEventListener('newMessage', event => {
|
window.addEventListener('newMessage', event => {
|
||||||
let jid = event.detail.jid;
|
let jid = event.detail.jid;
|
||||||
Array.from(document.querySelectorAll('[data-jabberID="' + jid + '"]')).forEach(el => {
|
Array.from(document.querySelectorAll('[data-jabberID="' + jid + '"]')).forEach(el => {
|
||||||
el.parentElement.parentElement.classList.add('unread');
|
el.parentElement.parentElement.parentElement.classList.add('unread');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -10,8 +10,8 @@ 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.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' ? 'text-simple-line-icons 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