Hide pad creation screen features if it is disabled in app config

This commit is contained in:
yflory
2018-01-12 14:50:39 +01:00
parent b01d00f74a
commit db0d2e161c
3 changed files with 23 additions and 10 deletions

View File

@@ -9,6 +9,7 @@ define([
'/common/common-hash.js',
'/customize/messages.js',
'/common/hyperscript.js',
'/customize/application_config.js',
'/bower_components/file-saver/FileSaver.min.js',
'css!/bower_components/bootstrap/dist/css/bootstrap.min.css',
@@ -24,7 +25,8 @@ define([
Util,
Hash,
Messages,
h
h,
AppConfig
)
{
var saveAs = window.saveAs;
@@ -65,6 +67,10 @@ define([
]
};
if (!AppConfig.dislayCreationScreen) {
delete categories.creation;
}
var create = {};
// Account settings