Commit 85135dbc authored by Michael Wagner's avatar Michael Wagner
Browse files

by editing Profile.js I could hide navbar sections

parent 63ee77ca
......@@ -49,8 +49,8 @@ $.extend(DefaultProfile.prototype, {
this.mainMenu = {
showLabNotebook : true,
showInventory : true,
showStock : true,
showInventory : false,
showStock : false,
// showDrawingBoard : false,
showObjectBrowser : true,
showExports : true,
......
......@@ -4,7 +4,6 @@ function GenericTechnology() {
$.extend(GenericTechnology.prototype, ELNLIMSPlugin.prototype, {
init: function () {
},
forcedDisableRTF: [],
forceMonospaceFont: [],
......@@ -77,7 +76,21 @@ $.extend(GenericTechnology.prototype, ELNLIMSPlugin.prototype, {
}]
},
"EXPERIMENTAL_STEP": {
"TOOLBAR": { CREATE: false, FREEZE: false, EDIT: true, MOVE: false, COPY: false, DELETE: false, PRINT: true, HIERARCHY_GRAPH: true, HIERARCHY_TABLE: true, UPLOAD_DATASET: false, UPLOAD_DATASET_HELPER: false, EXPORT_ALL: true, EXPORT_METADATA: true },
"TOOLBAR": {
CREATE: true,
FREEZE: false,
EDIT: true,
MOVE: false,
COPY: false,
DELETE: false,
PRINT: false,
HIERARCHY_GRAPH: false,
HIERARCHY_TABLE: false,
UPLOAD_DATASET: true,
UPLOAD_DATASET_HELPER: false,
EXPORT_ALL: false,
EXPORT_METADATA: false
},
"SHOW": true,
"SHOW_ON_NAV": true,
"SAMPLE_PARENTS_HINT": [{
......@@ -86,6 +99,25 @@ $.extend(GenericTechnology.prototype, ELNLIMSPlugin.prototype, {
"MIN_COUNT": 0,
"ANNOTATION_PROPERTIES": [{"TYPE": "ANNOTATION.SYSTEM.COMMENTS", "MANDATORY": false}]
}],
extraToolbar: function (mode, sample) {
var toolbarModel = [];
if (mode === FormMode.VIEW) {
var $demoButton = FormUtil.getButtonWithIcon("glyphicon-heart", function () {
});
toolbarModel.push({component: $demoButton, tooltip: "Demo"});
try {
let elem = document.getElementById('STOCK');
//elem.style.visibility = 'hidden';
elem.parentElement.parentElement.style.display = 'none';
} catch (exception_var) {
console.log(exception_var);
}
}
return toolbarModel;
}
},
"ENTRY": {
"SHOW": true,
......@@ -102,6 +134,7 @@ $.extend(GenericTechnology.prototype, ELNLIMSPlugin.prototype, {
"ANNOTATION_PROPERTIES": [{"TYPE": "ANNOTATION.SYSTEM.COMMENTS", "MANDATORY": false}]
}],
},
},
dataSetTypeDefinitionsExtension: {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment