Team APP UI
This commit is contained in:
@@ -145,11 +145,10 @@ define([
|
||||
}));
|
||||
|
||||
Object.keys(teams).forEach(function (id) {
|
||||
// XXX waitFor?
|
||||
// only if we want to make sure teams are loaded before remore the loading screen
|
||||
openChannel(ctx, teams[id], id, function () {
|
||||
openChannel(ctx, teams[id], id, waitFor(function () {
|
||||
console.error('team '+id+' ready');
|
||||
});
|
||||
}));
|
||||
});
|
||||
|
||||
team.getTeam = function (id) {
|
||||
@@ -169,6 +168,9 @@ define([
|
||||
// Only the team app will subscribe to events?
|
||||
return void subscribe(ctx, data, clientId, cb);
|
||||
}
|
||||
if (cmd === 'LIST_TEAMS') {
|
||||
return void cb(ctx.teams);
|
||||
}
|
||||
};
|
||||
|
||||
return team;
|
||||
|
||||
Reference in New Issue
Block a user