Compare commits

..

3 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
2 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ You can report a bug or request a feature by opening an issue.
]]></description> ]]></description>
<licence>agpl</licence> <licence>agpl</licence>
<author mail="contact@deblan.fr" homepage="https://www.deblan.io/">Simon Vieille</author> <author mail="contact@deblan.fr" homepage="https://www.deblan.io/">Simon Vieille</author>
<version>1.8.3</version> <version>1.8.5</version>
<namespace>SideMenu</namespace> <namespace>SideMenu</namespace>
<category>customization</category> <category>customization</category>
<website>https://gitnet.fr/deblan/side_menu</website> <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/5f35aae1.png</screenshot>
<screenshot>https://upload.deblan.org/u/2020-08/5f35ab0f.png</screenshot> <screenshot>https://upload.deblan.org/u/2020-08/5f35ab0f.png</screenshot>
<dependencies> <dependencies>
<nextcloud min-version="18" max-version="19"/> <nextcloud min-version="18" max-version="20"/>
</dependencies> </dependencies>
<settings> <settings>
<admin>OCA\SideMenu\Settings\Admin</admin> <admin>OCA\SideMenu\Settings\Admin</admin>
+4 -1
View File
@@ -52,8 +52,11 @@ export default {
this.apps = [] this.apps = []
const links = document.querySelectorAll('#appmenu a') const links = document.querySelectorAll('#appmenu a')
const menu = document.querySelector('#appmenu') 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) { for (let element of links) {
let href = element.getAttribute('href') let href = element.getAttribute('href')