Hide disabled applications from the context menu in drive
This commit is contained in:
@@ -4,7 +4,7 @@ define(function() {
|
||||
/* Select the buttons displayed on the main page to create new collaborative sessions
|
||||
* Existing types : pad, code, poll, slide
|
||||
*/
|
||||
config.availablePadTypes = ['pad', 'code', 'slide', 'poll'];
|
||||
config.availablePadTypes = ['drive', 'pad', 'code', 'slide', 'poll'];
|
||||
|
||||
/* Cryptpad apps use a common API to display notifications to users
|
||||
* by default, notifications are hidden after 5 seconds
|
||||
|
||||
@@ -54,6 +54,7 @@ define([
|
||||
var $parent = $('#buttons');
|
||||
var options = [];
|
||||
Config.availablePadTypes.forEach(function (el) {
|
||||
if (el === 'drive') { return; }
|
||||
options.push({
|
||||
tag: 'a',
|
||||
attributes: {
|
||||
|
||||
Reference in New Issue
Block a user