From 0e5bb43f52dd7d6fa345548a24b045c9f6e763cf Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 14 Apr 2021 13:20:01 +0200 Subject: [PATCH] Hide calendar app from new pad menu --- www/common/common-ui-elements.js | 1 + www/common/drive-ui.js | 1 + 2 files changed, 2 insertions(+) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 1cef92b51..ecfd0eb25 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -1957,6 +1957,7 @@ define([ if (p === 'todo') { return; } if (p === 'file') { return; } if (p === 'accounts') { return; } + if (p === 'calendar') { 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 22b4f1460..db8bc6742 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -2543,6 +2543,7 @@ define([ if (type === 'todo') { return; } if (type === 'file') { return; } if (type === 'accounts') { return; } + if (type === 'calendar') { return; } if (!APP.loggedIn && AppConfig.registeredOnlyTypes && AppConfig.registeredOnlyTypes.indexOf(type) !== -1) { return;