[Libreoffice-commits] online.git: loleaflet/src
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Jan 18 17:47:22 UTC 2019
loleaflet/src/control/Control.Menubar.js | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 3e47e6ffae48cbc3a66c94556820e4de5f31aa90
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Tue Dec 18 17:22:28 2018 +0100
Commit: Jan Holesovsky <kendy at collabora.com>
CommitDate: Fri Jan 18 18:46:58 2019 +0100
Don't show modification indicator in read-only mode
Change-Id: Ib9f8803c0524040d6debf4adbdd4de7fa47fa32c
diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js
index 53f19b561..23eaffe23 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -855,6 +855,10 @@ L.Control.Menubar = L.Control.extend({
continue;
}
+ if (this._map._permission === 'readonly' && menu[i].id === 'last-mod') {
+ continue;
+ }
+
if (menu[i].type === 'action') {
if ((menu[i].id === 'rev-history' && !revHistoryEnabled) ||
(menu[i].id === 'closedocument' && !closebutton)) {
More information about the Libreoffice-commits
mailing list