fix compatibility with the option 'hide-when-no-apps'

This commit is contained in:
Simon Vieille
2020-08-12 14:06:52 +02:00
parent ffab77aff2
commit 9d9afff08d
3 changed files with 18 additions and 3 deletions
+9 -1
View File
@@ -61,7 +61,15 @@ export default {
.then(function(response) {
that.items = response.data.items
jQuery('body').trigger('side-menu.apps', [])
let apps = []
for (let category of that.items) {
for (let app of category.apps) {
apps.push(app)
}
}
jQuery('body').trigger('side-menu.apps', [apps])
});
},
retrieveActiveApp() {