loleaflet/src/core/Socket.js |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 1a493880a496b805c6c577262715cc09b1e3cab2
Author: Henry Castro <hcas...@collabora.com>
Date:   Sun Sep 17 11:09:02 2017 -0400

    loleaflet: show error when the document is disconnected
    
    Change-Id: I43f8d48002ccb2fc3b6ac9807b72ba6b618d72d2

diff --git a/loleaflet/src/core/Socket.js b/loleaflet/src/core/Socket.js
index d6243113..155494e2 100644
--- a/loleaflet/src/core/Socket.js
+++ b/loleaflet/src/core/Socket.js
@@ -268,6 +268,10 @@ L.Socket = L.Class.extend({
                                msg = _('Server is shutting down for 
maintenance (auto-saving)');
                                postMsgData['Reason'] = 'ShuttingDown';
                        }
+                       else if (textMsg === 'docdisconnected') {
+                               msg = _('Oops, there is a problem connecting 
the document');
+                               postMsgData['Reason'] = 'DocumentDisconnected';
+                       }
                        else if (textMsg === 'recycling') {
                                msg = _('Server is recycling and will be 
available shortly');
                                this._map._active = false;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to