Add the file app in the 'new' dropdown menus

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

No files matched your search

+4
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,