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

@@ -636,6 +636,8 @@ define([
var pads_options = [];
Config.availablePadTypes.forEach(function (p) {
if (p === 'drive') { return; }
if (!Cryptpad.isLoggedIn() && Config.registeredOnlyTypes &&
Config.registeredOnlyTypes.indexOf(p) !== -1) { return; }
pads_options.push({
tag: 'a',
attributes: {