fix issue with the classic display

This commit is contained in:
Simon Vieille 2020-08-13 13:05:38 +02:00
parent d3b7b99aae
commit aa9ba60680
Signed by: deblan
GPG key ID: 03383D15A1D31745

View file

@ -51,6 +51,11 @@ export default {
retrieveApps() {
this.apps = []
const links = document.querySelectorAll('#appmenu a')
const menu = document.querySelector('#appmenu')
const menuIsHidden = window.getComputedStyle(menu, null).getPropertyValue('display') === 'none';
console.log(links);
for (let element of links) {
let href = element.getAttribute('href')
@ -63,7 +68,7 @@ export default {
var dataId = parent.getAttribute('data-id')
dataId = dataId !== null ? dataId : ''
if (!parent.classList.contains('app-hidden')) {
if (!parent.classList.contains('app-hidden') && !menuIsHidden) {
continue
}