From 467ddc19c3f1f6dd767e904230f748b2bb18a5aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 14 Dec 2016 17:22:19 +0100 Subject: [PATCH] feat(panel): worked on panel description tooltip, #6847 --- public/app/features/panel/panel_menu.js | 8 +-- public/app/features/panellinks/module.html | 78 +++++++++------------- public/app/partials/panelgeneral.html | 54 ++++++++------- 3 files changed, 64 insertions(+), 76 deletions(-) diff --git a/public/app/features/panel/panel_menu.js b/public/app/features/panel/panel_menu.js index 3524a0c019f..a6a3fa9ae78 100644 --- a/public/app/features/panel/panel_menu.js +++ b/public/app/features/panel/panel_menu.js @@ -14,7 +14,7 @@ function (angular, $, _, Tether) { '' + '' + '{{ctrl.panel.title | interpolateTemplateVars:this}}' + - '{{ctrl.panel.helpText}}' + + '{{ctrl.panel.description}}' + '' + ' {{ctrl.timeInfo}}' + ''; @@ -104,9 +104,9 @@ function (angular, $, _, Tether) { $panelLinksBtn.css({display: showIcon ? 'inline' : 'none'}); }); - $scope.$watch('ctrl.panel.helpText', function(helpText) { - helpText = sanitizeString(helpText); - var showIcon = (helpText ? helpText.length > 0 : false) && ctrl.panel.title !== ''; + $scope.$watch('ctrl.panel.description', function(description) { + description = sanitizeString(description); + var showIcon = (description ? description.length > 0 : false) && ctrl.panel.title !== ''; $panelHelpDrop.css({display: showIcon ? 'inline' : 'none'}); }); diff --git a/public/app/features/panellinks/module.html b/public/app/features/panellinks/module.html index 0cc977f7a9b..96d9b785a1b 100644 --- a/public/app/features/panellinks/module.html +++ b/public/app/features/panellinks/module.html @@ -3,60 +3,44 @@ Drilldown / detail linkThese links appear in the dropdown menu in the panel menu. -
-
- -
-
- -
- -
- Type -
- -
-
- -
- Dashboard - - - Url - -
- -
- +
+
+
+ Type +
+
-
-
- -
+
+ Dashboard + -
-
Title
- -
- -
- Url params - -
+ Url +
-
-
- -
+
+
Title
+ +
-
- - - -
+
+ +
+
+ Url params + +
+ + + + +
+ +
+
+
diff --git a/public/app/partials/panelgeneral.html b/public/app/partials/panelgeneral.html index d86ae54c0de..a69884dc5cc 100644 --- a/public/app/partials/panelgeneral.html +++ b/public/app/partials/panelgeneral.html @@ -1,40 +1,44 @@ -
-
-
- Title - -
+
+
+
Info
- Span - + Title +
-
- Height - +
+ Description +
-
-
-
- Repeat Panel - +
+
Dimensions
+
+ Span +
- Min span + Height + +
+ +
+ +
+
Templating
+
+ Repeat Panel + +
+
+ Min span
-
-
- Help Text - -
-
-
+
- +