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