menu-to-mobile-wizard: Hide menus not allowed in read only mode.

Change-Id: I76b277ee68e0a94823615e65c335830c903e9edd
This commit is contained in:
Tamás Zolnai 2019-10-15 19:21:08 +02:00
parent ac31c8776e
commit 3f9cc7b5c9

View file

@ -1198,7 +1198,7 @@ L.Control.Menubar = L.Control.extend({
var items = this.options[docType];
for (var i = 0; i < items.length; i++) {
if (items[i].mobile !== false) {
if (items[i].mobile !== false && this._checkItemVisibility(items[i]) === true) {
topMenu.children.push(this._generateMenuStructure(items[i], docType, false));
}
}