Add the file app in the 'new' dropdown menus

This commit is contained in:
yflory
2017-06-06 11:52:47 +02:00
parent ac91d2f413
commit 5641a4a839
4 changed files with 10 additions and 1 deletions

View File

@@ -1370,6 +1370,10 @@ define([
}
AppConfig.availablePadTypes.forEach(function (type) {
if (type === 'drive') { return; }
if (!Cryptpad.isLoggedIn() && AppConfig.registeredOnlyTypes &&
AppConfig.registeredOnlyTypes.indexOf(type) !== -1) {
return;
}
var attributes = {
'class': 'newdoc',
'data-type': type,