Updates PR to only display the prop alias in the title attribute when in debug mode. U4-4794 Display the property alias for content properties & provide a link to the content type from the generic properties tab
This commit is contained in:
@@ -13,14 +13,16 @@ angular.module("umbraco.directives")
|
||||
restrict: 'E',
|
||||
replace: true,
|
||||
templateUrl: 'views/directives/umb-property.html',
|
||||
|
||||
link: function(scope) {
|
||||
scope.propertyAlias = Umbraco.Sys.ServerVariables.isDebuggingEnabled === true ? scope.property.alias : null;
|
||||
},
|
||||
//Define a controller for this directive to expose APIs to other directives
|
||||
controller: function ($scope, $timeout) {
|
||||
|
||||
var self = this;
|
||||
|
||||
//set the API properties/methods
|
||||
|
||||
|
||||
self.property = $scope.property;
|
||||
self.setPropertyError = function(errorMsg) {
|
||||
$scope.property.propertyErrorMessage = errorMsg;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<val-property-msg property="property"></val-property-msg>
|
||||
|
||||
<div class="umb-el-wrap">
|
||||
<label class="control-label" ng-hide="property.hideLabel" for="{{property.alias}}" title="{{property.alias}}">
|
||||
<label class="control-label" ng-hide="property.hideLabel" for="{{property.alias}}" ng-attr-title="{{propertyAlias}}">
|
||||
{{property.label}}
|
||||
<small ng-bind-html="property.description"></small>
|
||||
</label>
|
||||
|
||||
@@ -349,7 +349,9 @@ namespace Umbraco.Web.Editors
|
||||
{"trees", GetTreePluginsMetaData()}
|
||||
}
|
||||
},
|
||||
{"isDebuggingEnabled", HttpContext.IsDebuggingEnabled},
|
||||
{
|
||||
"isDebuggingEnabled", HttpContext.IsDebuggingEnabled
|
||||
},
|
||||
{
|
||||
"application", GetApplicationState()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user