fix issue with the classic display
This commit is contained in:
parent
d3b7b99aae
commit
aa9ba60680
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue