fix issue with the classic display
This commit is contained in:
+6
-1
@@ -51,6 +51,11 @@ export default {
|
|||||||
retrieveApps() {
|
retrieveApps() {
|
||||||
this.apps = []
|
this.apps = []
|
||||||
const links = document.querySelectorAll('#appmenu a')
|
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) {
|
for (let element of links) {
|
||||||
let href = element.getAttribute('href')
|
let href = element.getAttribute('href')
|
||||||
@@ -63,7 +68,7 @@ export default {
|
|||||||
var dataId = parent.getAttribute('data-id')
|
var dataId = parent.getAttribute('data-id')
|
||||||
dataId = dataId !== null ? dataId : ''
|
dataId = dataId !== null ? dataId : ''
|
||||||
|
|
||||||
if (!parent.classList.contains('app-hidden')) {
|
if (!parent.classList.contains('app-hidden') && !menuIsHidden) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user