filter hidden types from a more sensible place in the drive

pull/1/head
ansuz 4 years ago
parent 7d634ab54b
commit 899eef1ee8

@ -2571,14 +2571,7 @@ define([
var getNewPadTypes = function () { var getNewPadTypes = function () {
var arr = []; var arr = [];
AppConfig.availablePadTypes.forEach(function (type) { AppConfig.availablePadTypes.forEach(function (type) {
if (type === 'drive') { return; } if (AppConfig.hiddenTypes.indexOf(type) !== -1) { return; }
if (type === 'teams') { return; }
if (type === 'contacts') { return; }
if (type === 'todo') { return; }
if (type === 'file') { return; }
if (type === 'accounts') { return; }
if (type === 'calendar') { return; }
if (type === 'poll') { return; } // replaced by forms
if (!APP.loggedIn && AppConfig.registeredOnlyTypes && if (!APP.loggedIn && AppConfig.registeredOnlyTypes &&
AppConfig.registeredOnlyTypes.indexOf(type) !== -1) { AppConfig.registeredOnlyTypes.indexOf(type) !== -1) {
return; return;
@ -3082,7 +3075,6 @@ define([
} }
// Pads // Pads
getNewPadTypes().forEach(function (type) { getNewPadTypes().forEach(function (type) {
if (AppConfig.hiddenTypes.indexOf(type) !== -1) { return; }
var $element = $('<li>', { var $element = $('<li>', {
'class': 'cp-app-drive-new-doc cp-app-drive-element-row ' + 'class': 'cp-app-drive-new-doc cp-app-drive-element-row ' +
'cp-app-drive-element-grid' 'cp-app-drive-element-grid'

Loading…
Cancel
Save