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
0662b5f9
Commit
0662b5f9
authored
Oct 14, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing unit tests
parent
631af46c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
public/app/features/dashboard/dashgrid/QueriesTab.tsx
+10
-4
public/app/features/dashboard/panel_model.ts
+0
-2
public/app/features/dashboard/specs/viewstate_srv.test.ts
+1
-0
No files found.
public/app/features/dashboard/dashgrid/QueriesTab.tsx
View file @
0662b5f9
...
...
@@ -21,15 +21,21 @@ export class QueriesTab extends React.Component<Props, any> {
return
;
}
const
{
panel
,
dashboard
}
=
this
.
props
;
// make sure the panel has datasource & queries properties
panel
.
datasource
=
panel
.
datasource
||
null
;
panel
.
targets
=
panel
.
targets
||
[{}];
const
loader
=
getAngularLoader
();
const
template
=
'<metrics-tab />'
;
const
scopeProps
=
{
ctrl
:
{
panel
:
this
.
props
.
panel
,
dashboard
:
this
.
props
.
dashboard
,
panel
:
panel
,
dashboard
:
dashboard
,
panelCtrl
:
{
panel
:
this
.
props
.
panel
,
dashboard
:
this
.
props
.
dashboard
,
panel
:
panel
,
dashboard
:
dashboard
,
},
},
};
...
...
public/app/features/dashboard/panel_model.ts
View file @
0662b5f9
...
...
@@ -52,8 +52,6 @@ export class PanelModel {
// defaults
this
.
gridPos
=
this
.
gridPos
||
{
x
:
0
,
y
:
0
,
h
:
3
,
w
:
6
};
this
.
datasource
=
this
.
datasource
||
null
;
this
.
targets
=
this
.
targets
||
[{}];
}
getSaveModel
()
{
...
...
public/app/features/dashboard/specs/viewstate_srv.test.ts
View file @
0662b5f9
...
...
@@ -11,6 +11,7 @@ describe('when updating view state', () => {
};
const
$scope
=
{
appEvent
:
jest
.
fn
(),
onAppEvent
:
jest
.
fn
(()
=>
{}),
dashboard
:
new
DashboardModel
({
panels
:
[{
id
:
1
}],
...
...
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