Add new state messages in the toolbar

This commit is contained in:
yflory
2017-10-20 18:12:47 +02:00
parent 6d080bcb45
commit 3e4faf1be1
4 changed files with 32 additions and 4 deletions

View File

@@ -1034,13 +1034,25 @@ define([
}
//checkLag(toolbar, config);
};
toolbar.initializing = function (/*userId*/) {
toolbar.connected = false;
if (toolbar.spinner) {
toolbar.spinner.text(Messages.initializing);
}
};
toolbar.reconnecting = function (/*userId*/) {
//if (config.metadataMgr) { config.userList.userNetfluxId = userId; } TODO
toolbar.connected = false;
if (toolbar.spinner) {
toolbar.spinner.text(Messages.reconnecting);
}
//checkLag(toolbar, config);
};
// When the pad is moved to the trash (forget button)
toolbar.forgotten = function (/*userId*/) {
toolbar.connected = false;
if (toolbar.spinner) {
toolbar.spinner.text(Messages.forgotten);
}
};
// On log out, remove permanently the realtime elements of the toolbar