Templates in polls and canvas, and ability to disable templates

This commit is contained in:
yflory
2017-04-10 14:19:15 +02:00
parent 84d8615cf1
commit bd16e0f0e7
5 changed files with 54 additions and 6 deletions

View File

@@ -219,7 +219,8 @@ define([
// Categories dislayed in the menu
// _WORKGROUP_ : do not display unsorted
var displayedCategories = [ROOT, UNSORTED, TRASH, SEARCH, TEMPLATE];
var displayedCategories = [ROOT, UNSORTED, TRASH, SEARCH];
if (AppConfig.enableTemplates) { displayedCategories.push(TEMPLATE); }
if (isWorkgroup()) { displayedCategories = [ROOT, TRASH, SEARCH]; }
var lastSelectTime;