diff --git a/VirtoCommerce.CatalogModule.Web/Scripts/directives/property2.js b/VirtoCommerce.CatalogModule.Web/Scripts/directives/property2.js
index 6802468ff..3c198a053 100644
--- a/VirtoCommerce.CatalogModule.Web/Scripts/directives/property2.js
+++ b/VirtoCommerce.CatalogModule.Web/Scripts/directives/property2.js
@@ -9,6 +9,7 @@ angular.module('virtoCommerce.catalogModule')
templateUrl: 'Modules/$(VirtoCommerce.Catalog)/Scripts/directives/property2.tpl.html',
scope: {
languages: "=",
+ hiddenLanguages: "=",
defaultLanguage: "=",
getPropValues: "&",
pageSize: "@?"
@@ -130,6 +131,16 @@ angular.module('virtoCommerce.catalogModule')
}
};
+ scope.isLanguageVisible = function (language) {
+ if(scope.hiddenLanguages){
+ if (_.contains(scope.hiddenLanguages, language)) {
+ return false;
+ }
+ }
+
+ return true;
+ }
+
scope.loadDictionaryValues = function ($select) {
$select.page = 0;
scope.context.allDictionaryValues = [];
diff --git a/VirtoCommerce.CatalogModule.Web/Scripts/directives/property2.tpl.html b/VirtoCommerce.CatalogModule.Web/Scripts/directives/property2.tpl.html
index 070f063d5..c6081f1a4 100644
--- a/VirtoCommerce.CatalogModule.Web/Scripts/directives/property2.tpl.html
+++ b/VirtoCommerce.CatalogModule.Web/Scripts/directives/property2.tpl.html
@@ -178,7 +178,7 @@