From a2523cd3d468955dacee5b4c38b6d7a117a7de96 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 20 Oct 2020 15:44:19 +0200 Subject: [PATCH] Exclude acconts app from the new pad menu --- www/common/common-ui-elements.js | 3 ++- www/common/drive-ui.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index f4630ae17..8b9415220 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -1239,8 +1239,8 @@ define([ } else if (!plan) { // user is logged in and subscriptions are allowed // and they don't have one. show upgrades - makeDonateButton(); makeUpgradeButton(); + makeDonateButton(); } else { // they have a plan. show nothing } @@ -1934,6 +1934,7 @@ define([ if (p === 'contacts') { return; } if (p === 'todo') { return; } if (p === 'file') { return; } + if (p === 'accounts') { return; } if (!common.isLoggedIn() && AppConfig.registeredOnlyTypes && AppConfig.registeredOnlyTypes.indexOf(p) !== -1) { return; } return true; diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index 6e2b29b7b..649b5fe86 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -2520,6 +2520,7 @@ define([ if (type === 'contacts') { return; } if (type === 'todo') { return; } if (type === 'file') { return; } + if (type === 'accounts') { return; } if (!APP.loggedIn && AppConfig.registeredOnlyTypes && AppConfig.registeredOnlyTypes.indexOf(type) !== -1) { return;