+
diff --git a/public/app/features/dashboard/partials/panel_info.html b/public/app/features/dashboard/partials/panel_info.html
deleted file mode 100644
index de863eaa258..00000000000
--- a/public/app/features/dashboard/partials/panel_info.html
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
diff --git a/public/app/features/panel/panel_ctrl.ts b/public/app/features/panel/panel_ctrl.ts
index 32563519991..7be578c7fde 100644
--- a/public/app/features/panel/panel_ctrl.ts
+++ b/public/app/features/panel/panel_ctrl.ts
@@ -258,8 +258,13 @@ export class PanelCtrl {
return '';
}
- getInfoContent() {
- var markdown = this.error || this.panel.description;
+ getInfoContent(options) {
+ var markdown = this.panel.description;
+
+ if (options.mode === 'tooltip') {
+ markdown = this.error || this.panel.description;
+ }
+
var linkSrv = this.$injector.get('linkSrv');
var templateSrv = this.$injector.get('templateSrv');
var interpolatedMarkdown = templateSrv.replace(markdown, this.panel.scopedVars);
@@ -279,23 +284,16 @@ export class PanelCtrl {
return html + ' ';
}
- openInfo() {
+ openInspector() {
var modalScope = this.$scope.$new();
modalScope.panel = this.panel;
modalScope.dashboard = this.dashboard;
+ modalScope.panelInfoHtml = this.getInfoContent({mode: 'inspector'});
- if (this.error) {
- modalScope.inspector = $.extend(true, {}, this.inspector);
- this.publishAppEvent('show-modal', {
- src: 'public/app/features/dashboard/partials/inspector.html',
- scope: modalScope
- });
- } else {
- modalScope.html = this.getInfoContent();
- this.publishAppEvent('show-modal', {
- src: 'public/app/features/dashboard/partials/panel_info.html',
- scope: modalScope
- });
- }
+ modalScope.inspector = $.extend(true, {}, this.inspector);
+ this.publishAppEvent('show-modal', {
+ src: 'public/app/features/dashboard/partials/inspector.html',
+ scope: modalScope
+ });
}
}
diff --git a/public/app/features/panel/panel_directive.ts b/public/app/features/panel/panel_directive.ts
index e5fcc7b4afe..b405dc67178 100644
--- a/public/app/features/panel/panel_directive.ts
+++ b/public/app/features/panel/panel_directive.ts
@@ -10,7 +10,7 @@ var module = angular.module('grafana.directives');
var panelTemplate = `