Skip to content
Snippets Groups Projects
Commit ed41867c authored by juanf's avatar juanf
Browse files

BIS-991: Fix toolbar plugin not loading on datasets

parent dc9f8025
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
...@@ -444,8 +444,13 @@ function DataSetFormView(dataSetFormController, dataSetFormModel) { ...@@ -444,8 +444,13 @@ function DataSetFormView(dataSetFormController, dataSetFormModel) {
$header.append($title); $header.append($title);
// Toolbar extension // Toolbar extension
debugger; var datasetTypeCode = null;
var datasetTypeCode = $("#DATASET_TYPE").val(); if(this._dataSetFormModel.mode === FormMode.EDIT) {
datasetTypeCode = $("#DATASET_TYPE").val();
}
if(this._dataSetFormModel.mode === FormMode.VIEW) {
datasetTypeCode = this._getTypeCode();
}
if(datasetTypeCode) { if(datasetTypeCode) {
if(profile.dataSetTypeDefinitionsExtension[datasetTypeCode] && profile.dataSetTypeDefinitionsExtension[datasetTypeCode].extraToolbar) { if(profile.dataSetTypeDefinitionsExtension[datasetTypeCode] && profile.dataSetTypeDefinitionsExtension[datasetTypeCode].extraToolbar) {
toolbarModel = toolbarModel.concat(profile.dataSetTypeDefinitionsExtension[datasetTypeCode].extraToolbar(_this._dataSetFormModel.mode, _this._dataSetFormModel.dataSetV3)); toolbarModel = toolbarModel.concat(profile.dataSetTypeDefinitionsExtension[datasetTypeCode].extraToolbar(_this._dataSetFormModel.mode, _this._dataSetFormModel.dataSetV3));
......
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