Team APP UI

This commit is contained in:
yflory
2019-09-06 18:47:18 +02:00
parent 15387af020
commit 634d24b46c
8 changed files with 230 additions and 138 deletions

View File

@@ -217,7 +217,7 @@ define([
if (!proxy.drive || typeof(proxy.drive) !== 'object') {
throw new Error("Corrupted drive");
}
DriveUI.create(common, {
var drive = DriveUI.create(common, {
proxy: proxy,
folders: folders,
updateObject: updateObject,
@@ -228,13 +228,13 @@ define([
var onDisconnect = function (noAlert) {
setEditable(false);
if (APP.refresh) { APP.refresh(); }
if (drive.refresh) { drive.refresh(); }
APP.toolbar.failed();
if (!noAlert) { UI.alert(Messages.common_connectionLost, undefined, true); }
};
var onReconnect = function (info) {
setEditable(true);
if (APP.refresh) { APP.refresh(); }
if (drive.refresh) { drive.refresh(); }
APP.toolbar.reconnecting(info.myId);
UI.findOKButton().click();
};