diff --git a/src/VirtoCommerce.Platform.Web/wwwroot/js/app/modularity/blades/module-detail.js b/src/VirtoCommerce.Platform.Web/wwwroot/js/app/modularity/blades/module-detail.js index 42a8a4ce03..79dafa847f 100644 --- a/src/VirtoCommerce.Platform.Web/wwwroot/js/app/modularity/blades/module-detail.js +++ b/src/VirtoCommerce.Platform.Web/wwwroot/js/app/modularity/blades/module-detail.js @@ -66,6 +66,12 @@ angular.module('platformWebApp') return result; } + $scope.isModulePresent = function (dependencyId) { + return _.any(moduleHelper.allmodules, function (x) { + return x.id === dependencyId; + }); + } + $scope.formDependencyVersion = function (dependency) { return dependency.version.major + '.' + dependency.version.minor + '.' + dependency.version.patch; }; diff --git a/src/VirtoCommerce.Platform.Web/wwwroot/js/app/modularity/blades/module-detail.tpl.html b/src/VirtoCommerce.Platform.Web/wwwroot/js/app/modularity/blades/module-detail.tpl.html index 2ea0a50006..9f98d5db5d 100644 --- a/src/VirtoCommerce.Platform.Web/wwwroot/js/app/modularity/blades/module-detail.tpl.html +++ b/src/VirtoCommerce.Platform.Web/wwwroot/js/app/modularity/blades/module-detail.tpl.html @@ -89,7 +89,8 @@