Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
c0197bcb
Commit
c0197bcb
authored
Nov 14, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: added events to MetricsTabCtrl to closer mimic MetricsPanelCtrl
parent
1eecda48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
public/app/features/panel/metrics_tab.ts
+6
-0
No files found.
public/app/features/panel/metrics_tab.ts
View file @
c0197bcb
...
...
@@ -5,6 +5,7 @@ import Remarkable from 'remarkable';
// Services & utils
import
coreModule
from
'app/core/core_module'
;
import
config
from
'app/core/config'
;
import
{
Emitter
}
from
'app/core/utils/emitter'
;
// Types
import
{
DashboardModel
}
from
'../dashboard/dashboard_model'
;
...
...
@@ -25,6 +26,7 @@ export class MetricsTabCtrl {
hasQueryHelp
:
boolean
;
helpHtml
:
string
;
queryOptions
:
any
;
events
:
Emitter
;
/** @ngInject */
constructor
(
$scope
,
private
$sce
,
datasourceSrv
,
private
backendSrv
)
{
...
...
@@ -39,6 +41,10 @@ export class MetricsTabCtrl {
this
.
datasources
=
datasourceSrv
.
getMetricSources
();
this
.
panelDsValue
=
this
.
panelCtrl
.
panel
.
datasource
;
// addded here as old query controller expects this on panelCtrl but
// they are getting MetricsTabCtrl instead
this
.
events
=
this
.
panel
.
events
;
for
(
const
ds
of
this
.
datasources
)
{
if
(
ds
.
value
===
this
.
panelDsValue
)
{
this
.
datasourceInstance
=
ds
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment