From 86a73c359be48ac24470add660de3305f82375ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Fri, 23 Jun 2017 11:32:04 -0400 Subject: [PATCH] fix: data source selector did not show, fixes #8692 --- public/app/core/components/form_dropdown/form_dropdown.ts | 1 + public/app/features/panel/metrics_tab.ts | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/public/app/core/components/form_dropdown/form_dropdown.ts b/public/app/core/components/form_dropdown/form_dropdown.ts index d8212e2f55c..1c611e94397 100644 --- a/public/app/core/components/form_dropdown/form_dropdown.ts +++ b/public/app/core/components/form_dropdown/form_dropdown.ts @@ -30,6 +30,7 @@ export class FormDropdownCtrl { optionCache: any; lookupText: boolean; + /** @ngInject **/ constructor(private $scope, $element, private $sce, private templateSrv, private $q) { this.inputElement = $element.find('input').first(); this.linkElement = $element.find('a').first(); diff --git a/public/app/features/panel/metrics_tab.ts b/public/app/features/panel/metrics_tab.ts index c03c4d83bc2..e1825173172 100644 --- a/public/app/features/panel/metrics_tab.ts +++ b/public/app/features/panel/metrics_tab.ts @@ -1,7 +1,6 @@ /// import _ from 'lodash'; -//import {coreModule} from 'app/core/core'; import {DashboardModel} from '../dashboard/model'; export class MetricsTabCtrl { @@ -32,7 +31,6 @@ export class MetricsTabCtrl { } this.addQueryDropdown = {text: 'Add Query', value: null, fake: true}; - // update next ref id this.panelCtrl.nextRefId = this.dashboard.getNextQueryLetter(this.panel); } @@ -80,4 +78,3 @@ export function metricsTabDirective() { }; } -//coreModule.directive('metricsTab', metricsTabDirective);