Enable AppConfig in pad2

pull/1/head
yflory 7 years ago
parent 4089803785
commit aa9e0d3cd3

@ -8,8 +8,10 @@ define([
'/common/sframe-common-history.js', '/common/sframe-common-history.js',
'/common/metadata-manager.js', '/common/metadata-manager.js',
'/customize/application_config.js',
'/common/cryptpad-common.js' '/common/cryptpad-common.js'
], function (nThen, Messages, CpNfInner, SFrameChannel, Title, UI, History, MetadataMgr, Cryptpad) { ], function (nThen, Messages, CpNfInner, SFrameChannel, Title, UI, History, MetadataMgr,
AppConfig, Cryptpad) {
// Chainpad Netflux Inner // Chainpad Netflux Inner
var funcs = {}; var funcs = {};
@ -138,7 +140,7 @@ define([
} }
break; break;
case 'template': case 'template':
//if (!AppConfig.enableTemplates) { return; } if (!AppConfig.enableTemplates) { return; }
button = $('<button>', { button = $('<button>', {
title: Messages.saveTemplateButton, title: Messages.saveTemplateButton,
}).append($('<span>', {'class':'fa fa-bookmark', style: 'font:'+size+' FontAwesome'})); }).append($('<span>', {'class':'fa fa-bookmark', style: 'font:'+size+' FontAwesome'}));
@ -214,10 +216,10 @@ define([
} }
break; break;
case 'history': case 'history':
/*if (!AppConfig.enableHistory) { if (!AppConfig.enableHistory) {
button = $('<span>'); button = $('<span>');
break; break;
}*/ }
button = $('<button>', { button = $('<button>', {
title: Messages.historyButton, title: Messages.historyButton,
'class': "fa fa-history history", 'class': "fa fa-history history",

Loading…
Cancel
Save