diff --git a/src/Moryx.AbstractionLayer.Products.Endpoints/ProductConverter.cs b/src/Moryx.AbstractionLayer.Products.Endpoints/ProductConverter.cs index d0c2313c9..287309c43 100644 --- a/src/Moryx.AbstractionLayer.Products.Endpoints/ProductConverter.cs +++ b/src/Moryx.AbstractionLayer.Products.Endpoints/ProductConverter.cs @@ -27,16 +27,22 @@ public ProductConverter(IProductManagement productManagement) { _productManagement = productManagement; } + public ProductDefinitionModel ConvertProductType(Type productType) { + var baseType = productType.BaseType; + var baseTypeName = baseType == typeof(ProductType) + ? string.Empty : baseType.FullName; + return new() { Name = productType.FullName, DisplayName = productType.GetDisplayName() ?? productType.Name, - BaseDefinition = productType.BaseType?.Name, + BaseDefinition = baseTypeName, Properties = EntryConvert.EncodeClass(productType, ProductSerialization) }; } + public RecipeDefinitionModel ConvertRecipeType(Type recipeType) { return new() diff --git a/src/Moryx.CommandCenter.Web/package.json b/src/Moryx.CommandCenter.Web/package.json index f3e0e52f5..26d9a0577 100644 --- a/src/Moryx.CommandCenter.Web/package.json +++ b/src/Moryx.CommandCenter.Web/package.json @@ -18,7 +18,7 @@ "@types/react-dom": "^18.2.19", "@types/react-redux": "^7.1.33", "@types/uuid": "^9.0.8", - "bootstrap": "4.6.2", + "bootstrap": "5.3.3", "bootstrap5-toggle": "^5.0.6", "moment": "^2.30.1", "query-string": "^8.2.0", @@ -30,7 +30,7 @@ "react-router-dom": "^6.22.0", "react-router-redux": "^4.0.8", "react-toastify": "^10.0.4", - "reactstrap": "^8.10.1", + "reactstrap": "^9.2.2", "redux": "^5.0.1", "ts-loader": "^9.5.1", "uuid": "^9.0.1" diff --git a/src/Moryx.CommandCenter.Web/src/common/components/ModuleHeader.tsx b/src/Moryx.CommandCenter.Web/src/common/components/ModuleHeader.tsx index 3f858560e..8dcb5a21b 100644 --- a/src/Moryx.CommandCenter.Web/src/common/components/ModuleHeader.tsx +++ b/src/Moryx.CommandCenter.Web/src/common/components/ModuleHeader.tsx @@ -45,7 +45,7 @@ export class ModuleHeader extends React.Component +