loleaflet/src/control/Control.MobileWizard.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit ad15c61e9b7bf2c0c3fcd2f42bff871de6b81e05 Author: Henry Castro <hcas...@collabora.com> AuthorDate: Fri Nov 1 17:05:21 2019 -0400 Commit: Henry Castro <hcas...@collabora.com> CommitDate: Mon Nov 4 22:23:43 2019 +0100 mobileWizard: avoid showing toolbar if it is not allowed In view mode the function hideWizard it is forced to show the toolbar Change-Id: Ib49501730fde1da65925db68b0b98baac2f15473 Reviewed-on: https://gerrit.libreoffice.org/81921 Reviewed-by: Henry Castro <hcas...@collabora.com> Tested-by: Henry Castro <hcas...@collabora.com> diff --git a/loleaflet/src/control/Control.MobileWizard.js b/loleaflet/src/control/Control.MobileWizard.js index e0c8def4e..5dd43ed9b 100644 --- a/loleaflet/src/control/Control.MobileWizard.js +++ b/loleaflet/src/control/Control.MobileWizard.js @@ -58,7 +58,9 @@ L.Control.MobileWizard = L.Control.extend({ _hideWizard: function() { $('#mobile-wizard').hide(); $('#mobile-wizard-content').empty(); - $('#toolbar-down').show(); + if (this.map._permission === 'edit') { + $('#toolbar-down').show(); + } this._isActive = false; this._currentPath = []; if (window.mobileWizard === true) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits