[Libreoffice-commits] online.git: loleaflet/src
Tamás Zolnai (via logerrit)
logerrit at kemper.freedesktop.org
Tue Apr 21 17:36:07 UTC 2020
loleaflet/src/control/Control.Toolbar.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 57e225bb9b4c58228db8a75938f2f7024d700a0b
Author: Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Tue Apr 21 16:45:47 2020 +0200
Commit: Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Tue Apr 21 19:35:46 2020 +0200
mobile: fix 'enable property of undefined' error.
Caught by cypress tests.
We don't have 'presentation-toolbar' on mobile.
Change-Id: I95440dbd505202183f936fc3e4f962c6a0199257
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92646
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>
diff --git a/loleaflet/src/control/Control.Toolbar.js b/loleaflet/src/control/Control.Toolbar.js
index 0dc0264d6..a70d4d78e 100644
--- a/loleaflet/src/control/Control.Toolbar.js
+++ b/loleaflet/src/control/Control.Toolbar.js
@@ -922,7 +922,7 @@ function onCommandStateChanged(e) {
if (window.mode.isMobile()) {
toolbarUp = statusbar;
}
- if (map.getDocType() === 'presentation' && (id === 'deletepage' || id === 'insertpage' || id === 'duplicatepage')) {
+ else if (map.getDocType() === 'presentation' && (id === 'deletepage' || id === 'insertpage' || id === 'duplicatepage')) {
toolbarUp = w2ui['presentation-toolbar'];
}
if (state === 'enabled') {
More information about the Libreoffice-commits
mailing list