From e7af725b7c6be28ac2dbaec7f95a40ef56db4184 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Tue, 8 Aug 2017 16:14:38 +0200 Subject: [PATCH] Better description of the buttons in case of document conflict. Change-Id: I177e0fdafef218f958f2efae7eb5ca3e099414de Reviewed-on: https://gerrit.libreoffice.org/40888 Reviewed-by: Jan Holesovsky Tested-by: Jan Holesovsky --- loleaflet/src/core/Socket.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/loleaflet/src/core/Socket.js b/loleaflet/src/core/Socket.js index 0e23d7970..8a18968af 100644 --- a/loleaflet/src/core/Socket.js +++ b/loleaflet/src/core/Socket.js @@ -389,7 +389,11 @@ L.Socket = L.Class.extend({ } vex.dialog.confirm({ - message: _('Document has been changed in storage. Do you want to refresh the page to load the new document ? Cancelling will continue editing and overwrite.'), + message: _('Document has been changed in storage. Do you want to discard your changes, and load the new document?'), + buttons: [ + $.extend({}, vex.dialog.buttons.YES, { text: _('Discard changes') }), + $.extend({}, vex.dialog.buttons.NO, { text: _('Overwrite document') }) + ], callback: L.bind(function(value) { if (value) { // They want to refresh the page and load document again for all