Exclude accounts app from the new pad menu

pull/1/head
yflory 4 years ago
parent fbc9edd795
commit 19f3222da9

@ -1239,8 +1239,8 @@ define([
} else if (!plan) { } else if (!plan) {
// user is logged in and subscriptions are allowed // user is logged in and subscriptions are allowed
// and they don't have one. show upgrades // and they don't have one. show upgrades
makeDonateButton();
makeUpgradeButton(); makeUpgradeButton();
makeDonateButton();
} else { } else {
// they have a plan. show nothing // they have a plan. show nothing
} }
@ -1934,6 +1934,7 @@ define([
if (p === 'contacts') { return; } if (p === 'contacts') { return; }
if (p === 'todo') { return; } if (p === 'todo') { return; }
if (p === 'file') { return; } if (p === 'file') { return; }
if (p === 'accounts') { return; }
if (!common.isLoggedIn() && AppConfig.registeredOnlyTypes && if (!common.isLoggedIn() && AppConfig.registeredOnlyTypes &&
AppConfig.registeredOnlyTypes.indexOf(p) !== -1) { return; } AppConfig.registeredOnlyTypes.indexOf(p) !== -1) { return; }
return true; return true;

@ -2520,6 +2520,7 @@ define([
if (type === 'contacts') { return; } if (type === 'contacts') { return; }
if (type === 'todo') { return; } if (type === 'todo') { return; }
if (type === 'file') { return; } if (type === 'file') { return; }
if (type === 'accounts') { return; }
if (!APP.loggedIn && AppConfig.registeredOnlyTypes && if (!APP.loggedIn && AppConfig.registeredOnlyTypes &&
AppConfig.registeredOnlyTypes.indexOf(type) !== -1) { AppConfig.registeredOnlyTypes.indexOf(type) !== -1) {
return; return;

Loading…
Cancel
Save