loleaflet/dist/toolbar/toolbar.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit be910e7325ee48a036d6f9987b875ccd705887a3 Author: Ashod Nakashian <ashod.nakash...@collabora.co.uk> Date: Mon Jun 19 01:20:34 2017 -0400 loleaflet: Allow users to repair at all times Since during an edit conflict the undo/redo buttons are dissabled (for the user who can't undo/redo anymore) disabling the repair button robs them of the ability to repair the document to an earlier state (i.e. before the conflict). This enables the repair button as soon as either the undo or redo is enabled, whereupon it remains enabled for the duration of the session. Change-Id: Ibaf257155f721e2cef596e965d8812d381ab3a5b Reviewed-on: https://gerrit.libreoffice.org/38942 Reviewed-by: Ashod Nakashian <ashnak...@gmail.com> Tested-by: Ashod Nakashian <ashnak...@gmail.com> (cherry picked from commit 323e2789b9e82e0d600d39d0697d40f6014f54d7) Reviewed-on: https://gerrit.libreoffice.org/38943 Reviewed-by: pranavk <pran...@collabora.co.uk> Reviewed-by: Jan Holesovsky <ke...@collabora.com> Tested-by: Jan Holesovsky <ke...@collabora.com> diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js index e227c074..94b17e42 100644 --- a/loleaflet/dist/toolbar/toolbar.js +++ b/loleaflet/dist/toolbar/toolbar.js @@ -1224,9 +1224,7 @@ map.on('commandstatechanged', function (e) { } if (id === 'undo' || id === 'redo') { - if (toolbar.get('undo').disabled && toolbar.get('redo').disabled) { - toolbar.disable('repair'); - } else { + if (!toolbar.get('undo').disabled || !toolbar.get('redo').disabled) { toolbar.enable('repair'); } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits