diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/umbproperty.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/umbproperty.directive.js index 106d1a0031..6fff684bfe 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/umbproperty.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/umbproperty.directive.js @@ -1,10 +1,13 @@ angular.module("umbraco.directives") - .directive('umbProperty', function () { + .directive('umbProperty', function (umbPropEditorHelper) { return { scope: true, restrict: 'E', replace: true, - templateUrl: 'views/directives/umb-property.html' + templateUrl: 'views/directives/umb-property.html', + link: function(scope, element, attrs, ctrl) { + scope.propertyEditorView = umbPropEditorHelper.getViewPath(scope.model.view); + } }; }); \ No newline at end of file diff --git a/src/Umbraco.Web.UI.Client/src/views/directives/umb-property.html b/src/Umbraco.Web.UI.Client/src/views/directives/umb-property.html index 815531b96f..7ebb343abc 100644 --- a/src/Umbraco.Web.UI.Client/src/views/directives/umb-property.html +++ b/src/Umbraco.Web.UI.Client/src/views/directives/umb-property.html @@ -15,7 +15,7 @@
- +
diff --git a/src/Umbraco.Web.UI/umbraco/Views/directives/umb-property.html b/src/Umbraco.Web.UI/umbraco/Views/directives/umb-property.html deleted file mode 100644 index 815531b96f..0000000000 --- a/src/Umbraco.Web.UI/umbraco/Views/directives/umb-property.html +++ /dev/null @@ -1,24 +0,0 @@ -
- - -
- - - -
- - - -
- -
-
-
- -
-