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

@@ -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;