Fix stacking disconnection alerts

This commit is contained in:
yflory
2020-02-05 16:18:09 +01:00
parent 768dc71803
commit 1c013d8a4f
7 changed files with 34 additions and 17 deletions

View File

@@ -1379,13 +1379,13 @@ define([
setEditable(false);
if (APP.team && driveAPP.refresh) { driveAPP.refresh(); }
toolbar.failed();
if (!noAlert) { UI.alert(Messages.common_connectionLost, undefined, true); }
if (!noAlert) { UIElements.disconnectAlert(); }
};
var onReconnect = function () {
setEditable(true);
if (APP.team && driveAPP.refresh) { driveAPP.refresh(); }
toolbar.reconnecting();
UI.findOKButton().click();
UIElements.reconnectAlert();
};
sframeChan.on('EV_DRIVE_LOG', function (msg) {