fix compatibility with the option 'hide-when-no-apps'
This commit is contained in:
+9
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user