From 658efe4ea37f2bdf908ced56f2e31f2e1c6d5415 Mon Sep 17 00:00:00 2001 From: georgeDaskalakis Date: Wed, 26 May 2021 14:38:00 +0200 Subject: [PATCH] fixes #566 --- src/MoBi.Presentation/Tasks/ObservedDataTask.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/MoBi.Presentation/Tasks/ObservedDataTask.cs b/src/MoBi.Presentation/Tasks/ObservedDataTask.cs index 710443e25..4d9741979 100644 --- a/src/MoBi.Presentation/Tasks/ObservedDataTask.cs +++ b/src/MoBi.Presentation/Tasks/ObservedDataTask.cs @@ -396,7 +396,8 @@ private void addDimensionsTo(DimensionInfo.ColumnInfo columnInfo, IDimension mai yield return createMetaDataCategory(Constants.ObservedData.MOLECULE, isMandatory: false, isListOfValuesFixed: true, fixedValuesRetriever: addPredefinedMoleculeNames, - description: ObservedData.ObservedDataMoleculeDescription); + description: ObservedData.ObservedDataMoleculeDescription, + allowsManualInput: true); } private void addPredefinedMoleculeNames(DimensionInfo.MetaDataCategory metaDataCategory) @@ -495,7 +496,7 @@ private void addInfoToCategory(DimensionInfo.MetaDataCategory metaDataCategory, metaDataCategory.ListOfImages.Add(container.Name, icon.IconName); } - private DimensionInfo.MetaDataCategory createMetaDataCategory(string categoryName, bool isMandatory = false, bool isListOfValuesFixed = false, Action fixedValuesRetriever = null, string description = null) + private DimensionInfo.MetaDataCategory createMetaDataCategory(string categoryName, bool isMandatory = false, bool isListOfValuesFixed = false, Action fixedValuesRetriever = null, string description = null, bool allowsManualInput = false) { var category = new DimensionInfo.MetaDataCategory { @@ -504,7 +505,8 @@ private DimensionInfo.MetaDataCategory createMetaDataCategory(string category Description = description ?? categoryName, MetaDataType = typeof(T), IsMandatory = isMandatory, - IsListOfValuesFixed = isListOfValuesFixed + IsListOfValuesFixed = isListOfValuesFixed, + AllowsManualInput = allowsManualInput }; fixedValuesRetriever?.Invoke(category);