diff --git a/ui/src/app/components/dashboard.directive.js b/ui/src/app/components/dashboard.directive.js index f748d52066..8cb7ce0167 100644 --- a/ui/src/app/components/dashboard.directive.js +++ b/ui/src/app/components/dashboard.directive.js @@ -187,6 +187,7 @@ function DashboardController($scope, $rootScope, $element, $timeout, $mdMedia, $ vm.showWidgetActions = showWidgetActions; vm.widgetTitleStyle = widgetTitleStyle; vm.widgetTitle = widgetTitle; + vm.widgetTitleTooltip = widgetTitleTooltip; vm.customWidgetHeaderActions = customWidgetHeaderActions; vm.widgetActions = widgetActions; vm.dropWidgetShadow = dropWidgetShadow; @@ -934,6 +935,16 @@ function DashboardController($scope, $rootScope, $element, $timeout, $mdMedia, $ } } + function widgetTitleTooltip(widget) { + var ctx = widgetContext(widget); + if (ctx && ctx.widgetTitleTooltip + && ctx.widgetTitleTooltip.length) { + return ctx.widgetTitleTooltip; + } else { + return widget.config.titleTooltip; + } + } + function customWidgetHeaderActions(widget) { var ctx = widgetContext(widget); if (ctx && ctx.customHeaderActions && ctx.customHeaderActions.length) { diff --git a/ui/src/app/components/dashboard.tpl.html b/ui/src/app/components/dashboard.tpl.html index 6687058216..40cdac4baf 100644 --- a/ui/src/app/components/dashboard.tpl.html +++ b/ui/src/app/components/dashboard.tpl.html @@ -47,7 +47,11 @@