Commit da1bdd7 1 parent edb9be4 commit da1bdd7 Copy full SHA for da1bdd7
File tree 2 files changed +8
-1
lines changed
src/VirtoCommerce.Platform.Web/wwwroot/js/app/modularity/blades
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,12 @@ angular.module('platformWebApp')
66
66
return result ;
67
67
}
68
68
69
+ $scope . isModulePresent = function ( dependencyId ) {
70
+ return _ . any ( moduleHelper . allmodules , function ( x ) {
71
+ return x . id === dependencyId ;
72
+ } ) ;
73
+ }
74
+
69
75
$scope . formDependencyVersion = function ( dependency ) {
70
76
return dependency . version . major + '.' + dependency . version . minor + '.' + dependency . version . patch ;
71
77
} ;
Original file line number Diff line number Diff line change 89
89
< div class ="list-t "> {{ 'platform.blades.module-detail.labels.optional-dependencies' | translate }}</ div >
90
90
< div class ="list-descr ">
91
91
< div ng-repeat ="dependency in blade.currentEntity.dependencies | filter:{ optional: true } ">
92
- < a class ="__link " ng-click ="openDependencyModule(dependency) "> {{dependency.id}}</ a > {{formDependencyVersion(dependency)}}
92
+ < div ng-if ="isModulePresent(dependency.id) "> < a class ="__link " ng-click ="openDependencyModule(dependency) "> {{dependency.id}}</ a > {{formDependencyVersion(dependency)}}</ div >
93
+ < div ng-if ="!isModulePresent(dependency.id) "> {{ dependency.id }} {{formDependencyVersion(dependency)}}</ div >
93
94
</ div >
94
95
</ div >
95
96
</ li >
You can’t perform that action at this time.
0 commit comments