Pad: Disable toolbar and import/export when reconnecting

This commit is contained in:
Richard Hansen 2020-09-10 13:11:10 -04:00 committed by John McLear
parent 6f28e415ec
commit 5ac5b65aff
2 changed files with 10 additions and 2 deletions

View file

@ -222,7 +222,6 @@ function handshake()
});
socket.on('reconnecting', function() {
padeditor.disable();
pad.collabClient.setStateIdle();
pad.collabClient.setIsPendingRevision(true);
pad.collabClient.setChannelState("RECONNECTING");
@ -752,10 +751,15 @@ var pad = {
if (newState == "CONNECTED")
{
padeditor.enable();
padeditbar.enable();
padimpexp.enable();
padconnectionstatus.connected();
}
else if (newState == "RECONNECTING")
{
padeditor.disable();
padeditbar.disable();
padimpexp.disable();
padconnectionstatus.reconnecting();
}
else if (newState == "DISCONNECTED")