Compare commits

..

5 Commits

Author SHA1 Message Date
Simon Vieille 1567a8e82f fix #28: menu items invisible after 1.8.4 2020-08-25 19:06:01 +02:00
Simon Vieille e1ae5d21e2 add compatibility with NC 20 2020-08-25 13:33:02 +02:00
Simon Vieille 4370738625 fix #27: disable side menu on public pages - broken in 1.8.3 2020-08-25 12:18:39 +02:00
Simon Vieille acdd299573 release v1.8.3 2020-08-20 16:29:41 +02:00
Simon Vieille fae21390dd fix #26: alphabetic order of apps 2020-08-20 16:27:35 +02:00
3 changed files with 9 additions and 4 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ You can report a bug or request a feature by opening an issue.
]]></description>
<licence>agpl</licence>
<author mail="contact@deblan.fr" homepage="https://www.deblan.io/">Simon Vieille</author>
<version>1.8.2</version>
<version>1.8.5</version>
<namespace>SideMenu</namespace>
<category>customization</category>
<website>https://gitnet.fr/deblan/side_menu</website>
@@ -30,7 +30,7 @@ You can report a bug or request a feature by opening an issue.
<screenshot>https://upload.deblan.org/u/2020-08/5f35aae1.png</screenshot>
<screenshot>https://upload.deblan.org/u/2020-08/5f35ab0f.png</screenshot>
<dependencies>
<nextcloud min-version="18" max-version="19"/>
<nextcloud min-version="18" max-version="20"/>
</dependencies>
<settings>
<admin>OCA\SideMenu\Settings\Admin</admin>
+3 -1
View File
@@ -191,7 +191,9 @@ class NavController extends Controller
if (empty($items[$category]['apps'])) {
unset($items[$category]);
} else {
ksort($items[$category]['apps']);
uasort($items[$category]['apps'], function ($a, $b) {
return ($a['name'] < $b['name']) ? -1 : 1;
});
}
}
+4 -1
View File
@@ -52,8 +52,11 @@ export default {
this.apps = []
const links = document.querySelectorAll('#appmenu a')
const menu = document.querySelector('#appmenu')
let menuIsHidden = true
const menuIsHidden = window.getComputedStyle(menu, null).getPropertyValue('display') === 'none';
if (menu) {
menuIsHidden = window.getComputedStyle(menu, null).getPropertyValue('display') === 'none'
}
for (let element of links) {
let href = element.getAttribute('href')