Hide the import template button if templates are disabled in appconfig

pull/1/head
yflory 7 years ago
parent 337138d6e5
commit 52e634885e

@ -552,6 +552,8 @@ define([
button.click(function () { $input.click(); });
break;
case 'importtemplate':
if (!AppConfig.enableTemplates) { return; }
if (!common.isLoggedIn()) { return; }
button = $('<button>', {
'class': 'fa fa-upload cp-toolbar-icon-import',
title: Messages.template_import,

Loading…
Cancel
Save