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

@@ -57,6 +57,8 @@ define([
var $container = $('<div>', {'class': 'dropdown-bar'}).appendTo($parent);
Config.availablePadTypes.forEach(function (el) {
if (el === 'drive') { return; }
if (!Cryptpad.isLoggedIn() && Config.registeredOnlyTypes &&
Config.registeredOnlyTypes.indexOf(el) !== -1) { return; }
options.push({
tag: 'a',
attributes: {