Skip to content
Snippets Groups Projects
Commit 0e4c0be0 authored by Juan Fuentes's avatar Juan Fuentes
Browse files

SSDM-8232 : Freeze button on the toolbar can now be disabled

parent 6714ce7b
No related branches found
No related tags found
No related merge requests found
......@@ -309,7 +309,7 @@ $.extend(DefaultProfile.prototype, {
this.searchSamplesUsingV3OnDropboxRunCustom = false;
this.getDataSetTypeToolbarConfiguration = function(dataSetTypeCode) {
var defaultToolbar = { EDIT : true, MOVE : true, ARCHIVE : true, DELETE : true, HIERARCHY_TABLE : true, EXPORT_ALL : true, EXPORT_METADATA : true };
var defaultToolbar = { EDIT : true, FREEZE : true, MOVE : true, ARCHIVE : true, DELETE : true, HIERARCHY_TABLE : true, EXPORT_ALL : true, EXPORT_METADATA : true };
if(this.dataSetTypeDefinitionsExtension[dataSetTypeCode] && this.dataSetTypeDefinitionsExtension[dataSetTypeCode]["TOOLBAR"]) {
var toolbarOptions = this.dataSetTypeDefinitionsExtension[dataSetTypeCode]["TOOLBAR"];
for(key in toolbarOptions) {
......@@ -320,7 +320,7 @@ $.extend(DefaultProfile.prototype, {
}
this.getSampleTypeToolbarConfiguration = function(sampleTypeCode) {
var defaultToolbar = { CREATE : true, EDIT : true, MOVE : true, COPY: true, DELETE : true, PRINT: true, HIERARCHY_GRAPH : true, HIERARCHY_TABLE : true, UPLOAD_DATASET : true, UPLOAD_DATASET_HELPER : true, EXPORT_ALL : true, EXPORT_METADATA : true };
var defaultToolbar = { CREATE : true, EDIT : true, FREEZE : true, MOVE : true, COPY: true, DELETE : true, PRINT: true, HIERARCHY_GRAPH : true, HIERARCHY_TABLE : true, UPLOAD_DATASET : true, UPLOAD_DATASET_HELPER : true, EXPORT_ALL : true, EXPORT_METADATA : true };
if(this.sampleTypeDefinitionsExtension[sampleTypeCode] && this.sampleTypeDefinitionsExtension[sampleTypeCode]["TOOLBAR"]) {
var toolbarOptions = this.sampleTypeDefinitionsExtension[sampleTypeCode]["TOOLBAR"];
for(key in toolbarOptions) {
......
......@@ -92,7 +92,9 @@ function DataSetFormView(dataSetFormController, dataSetFormModel) {
var isEntityFrozen = _this._dataSetFormModel.v3_dataset.frozen;
var isEntityFrozenTooltip = (isEntityFrozen)?"Entity Frozen":"Freeze Entity (Disable further modifications)";
var $freezeButton = FormUtil.getFreezeButton("DATASET", this._dataSetFormModel.v3_dataset.permId.permId, isEntityFrozen);
toolbarModel.push({ component : $freezeButton, tooltip: isEntityFrozenTooltip });
if(toolbarConfig.FREEZE) {
toolbarModel.push({ component : $freezeButton, tooltip: isEntityFrozenTooltip });
}
}
if(!_this._dataSetFormModel.v3_dataset.frozen) {
......
......@@ -150,7 +150,9 @@ function SampleFormView(sampleFormController, sampleFormModel) {
var isEntityFrozen = _this._sampleFormModel.v3_sample.frozen;
var isEntityFrozenTooltip = (isEntityFrozen)?"Entity Frozen":"Freeze Entity (Disable further modifications)";
var $freezeButton = FormUtil.getFreezeButton("SAMPLE", this._sampleFormModel.v3_sample.permId.permId, isEntityFrozen);
toolbarModel.push({ component : $freezeButton, tooltip: isEntityFrozenTooltip });
if(toolbarConfig.FREEZE) {
toolbarModel.push({ component : $freezeButton, tooltip: isEntityFrozenTooltip });
}
}
if(!_this._sampleFormModel.v3_sample.frozen) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment