diff --git a/CHANGELOG.md b/CHANGELOG.md index 161d55a..9313a35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## [Unreleased] +## 2.3.1 +### Fixed +- fix #88: does not work with default menu + ## 2.3.0 ### Added - fix #82: add an option to keep visible an app in both menus diff --git a/appinfo/info.xml b/appinfo/info.xml index e65d4cd..1fd345e 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -26,7 +26,7 @@ If you like this application and if you want to support the development: * [Donate with liberapay](https://liberapay.com/deblan) * [Leave a comment](https://apps.nextcloud.com/apps/side_menu#comments) ]]> - 2.3.0 + 2.3.1 agpl Simon Vieille SideMenu diff --git a/src/SideMenu.vue b/src/SideMenu.vue index 7ab3cab..e47df87 100644 --- a/src/SideMenu.vue +++ b/src/SideMenu.vue @@ -100,7 +100,7 @@ export default { var dataId = parent.getAttribute('data-id') dataId = dataId !== null ? dataId : '' - if (!parent.classList.contains('app-hidden') && !menuIsHidden) { + if (!parent.classList.contains('app-top-side-menu') && !parent.classList.contains('app-hidden') && !menuIsHidden) { continue } diff --git a/templates/js/_topMenuApps.js b/templates/js/_topMenuApps.js index 85ed332..1cee506 100644 --- a/templates/js/_topMenuApps.js +++ b/templates/js/_topMenuApps.js @@ -59,6 +59,10 @@ const updateTopMenu = function() { app.classList.remove('hidden') app.classList.add('app-external-site') + if (topSideMenuApps.indexOf(dataId) !== -1) { + app.classList.add('app-top-side-menu') + } + appShown.push(app) navigationAppsHtml = navigationAppsHtml + app.outerHTML