mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Hide calendar app from new pad menu
This commit is contained in:
parent
657b9e347b
commit
0e5bb43f52
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user