Fix the infinite spinner bug with the file manager store
This commit is contained in:
@@ -153,8 +153,15 @@ define([
|
||||
}
|
||||
onReady(f, rt.proxy, Cryptpad.storageKey);
|
||||
})
|
||||
.on('disconnect', function () {
|
||||
.on('disconnect', function (info) {
|
||||
//setEditable(false);
|
||||
if (info.error) {
|
||||
//Cryptpad.alert(Messages.websocketError);
|
||||
if (typeof Cryptpad.storeError === "function") {
|
||||
Cryptpad.storeError();
|
||||
}
|
||||
return;
|
||||
}
|
||||
Cryptpad.alert(Messages.common_connectionLost);
|
||||
});
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ define(function () {
|
||||
].join('');
|
||||
|
||||
out.common_connectionLost = 'Server Connection Lost';
|
||||
out.websocketError = 'Unable to connect to the websocket server...';
|
||||
|
||||
out.disconnected = 'Disconnected';
|
||||
out.synchronizing = 'Synchronizing';
|
||||
|
||||
Reference in New Issue
Block a user