diff --git a/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.controller.js b/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.controller.js index 7239fd22e7..fec24a3a31 100644 --- a/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.controller.js @@ -29,6 +29,8 @@ vm.submit = submit; vm.close = close; + vm.toggleAllowCultureVariants = toggleAllowCultureVariants; + function onInit() { userService.getCurrentUser().then(function(user) { @@ -232,10 +234,19 @@ } + function toggleAllowCultureVariants() { + if ($scope.model.property.allowCultureVariant) { + $scope.model.property.allowCultureVariant = false; + return; + } + + $scope.model.property.allowCultureVariant = true; + } + onInit(); } angular.module("umbraco").controller("Umbraco.Editors.PropertySettingsController", PropertySettingsEditor); -})(); \ No newline at end of file +})(); diff --git a/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.html b/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.html index 610af28cb8..6862a313d1 100644 --- a/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.html +++ b/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.html @@ -106,14 +106,23 @@
- -
Property Type Variation
- - - +
+ +
+
+ +
+ +
+ + +
+ +
+