Hide pad creation screen features if it is disabled in app config
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user