|
|
|
@ -685,12 +685,17 @@ define([
|
|
|
|
|
var sframeChan = common.getSframeChannel();
|
|
|
|
|
var metadataMgr = common.getMetadataMgr();
|
|
|
|
|
var privateData = metadataMgr.getPrivateData();
|
|
|
|
|
|
|
|
|
|
if (!privateData.enableTeams) {
|
|
|
|
|
return void UI.errorLoadingScreen(Messages.comingSoon);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
readOnly = driveAPP.readOnly = metadataMgr.getPrivateData().readOnly;
|
|
|
|
|
|
|
|
|
|
driveAPP.loggedIn = common.isLoggedIn();
|
|
|
|
|
if (!driveAPP.loggedIn) { throw new Error('NOT_LOGGED_IN'); }
|
|
|
|
|
|
|
|
|
|
common.setTabTitle('TEAMS'); // XXX
|
|
|
|
|
common.setTabTitle('TEAMS (ALPHA)'); // XXX
|
|
|
|
|
|
|
|
|
|
// Drive data
|
|
|
|
|
if (privateData.newSharedFolder) {
|
|
|
|
@ -702,7 +707,7 @@ define([
|
|
|
|
|
var $bar = $('#cp-toolbar');
|
|
|
|
|
var configTb = {
|
|
|
|
|
displayed: ['useradmin', 'pageTitle', 'newpad', 'limit', 'notifications'],
|
|
|
|
|
pageTitle: 'TEAMS', // XXX
|
|
|
|
|
pageTitle: 'TEAMS (ALPHA)', // XXX
|
|
|
|
|
metadataMgr: metadataMgr,
|
|
|
|
|
readOnly: privateData.readOnly,
|
|
|
|
|
sfCommon: common,
|
|
|
|
|