Add comments and XXX
This commit is contained in:
parent
4128c34b93
commit
83bc0d84f0
@ -759,6 +759,8 @@ define([
|
||||
var teams = {};
|
||||
if (privateData.enableTeams) {
|
||||
Object.keys(teamsData).forEach(function (id) {
|
||||
// config.teamId only exists when we're trying to share a pad from a team drive
|
||||
// In this case, we don't want to share the pad with the current team
|
||||
if (config.teamId && config.teamId === id) { return; }
|
||||
var t = teamsData[id];
|
||||
teams[t.edPublic] = {
|
||||
@ -769,7 +771,7 @@ define([
|
||||
id: id
|
||||
};
|
||||
});
|
||||
var teamsList = UIElements.getFriendsList('Share with a team', {
|
||||
var teamsList = UIElements.getFriendsList('Share with a team', { // XXX
|
||||
common: common,
|
||||
noFilter: true,
|
||||
friends: teams
|
||||
|
||||
@ -262,6 +262,7 @@ define([
|
||||
var teamName = Util.fixHTML(Util.find(msg, ['content', 'team', 'metadata', 'name']) || '');
|
||||
content.getFormatText = function () {
|
||||
var text = name + " has invited you to join the team <b>" + teamName +"</b>";
|
||||
// XXX
|
||||
return text;
|
||||
};
|
||||
if (!content.archived) {
|
||||
@ -280,6 +281,7 @@ define([
|
||||
var teamName = Util.fixHTML(Util.find(msg, ['content', 'teamName']) || '');
|
||||
content.getFormatText = function () {
|
||||
var text = name + " has kicked you from join the team <b>" + teamName +"</b>";
|
||||
// XXX
|
||||
return text;
|
||||
};
|
||||
if (!content.archived) {
|
||||
|
||||
@ -66,7 +66,7 @@ define([
|
||||
if (!s) { return void cb({ error: 'ENOTFOUND' }); }
|
||||
nThen(function (waitFor) {
|
||||
Realtime.whenRealtimeSyncs(s.realtime, waitFor());
|
||||
if (s.sharedFolders) {
|
||||
if (s.sharedFolders && typeof (s.sharedFolders) === "object") {
|
||||
for (var k in s.sharedFolders) {
|
||||
Realtime.whenRealtimeSyncs(s.sharedFolders[k].realtime, waitFor());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user