Hide calendar app from new pad menu

pull/1/head
yflory 4 years ago
parent 657b9e347b
commit 0e5bb43f52

@ -1957,6 +1957,7 @@ define([
if (p === 'todo') { return; } if (p === 'todo') { return; }
if (p === 'file') { return; } if (p === 'file') { return; }
if (p === 'accounts') { return; } if (p === 'accounts') { return; }
if (p === 'calendar') { 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;

@ -2543,6 +2543,7 @@ define([
if (type === 'todo') { return; } if (type === 'todo') { return; }
if (type === 'file') { return; } if (type === 'file') { return; }
if (type === 'accounts') { return; } if (type === 'accounts') { return; }
if (type === 'calendar') { 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