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
c30b1b12
Commit
c30b1b12
authored
Jan 25, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(panels): minor progress
parent
9c6698e8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
public/app/features/panel/metrics_panel_ctrl.ts
+4
-2
public/app/features/panel/panel_ctrl.ts
+3
-1
public/app/plugins/panel/test/module.ts
+2
-2
No files found.
public/app/features/panel/metrics_panel_ctrl.ts
View file @
c30b1b12
...
@@ -7,9 +7,11 @@ class MetricsPanelCtrl extends PanelCtrl {
...
@@ -7,9 +7,11 @@ class MetricsPanelCtrl extends PanelCtrl {
error
:
boolean
;
error
:
boolean
;
loading
:
boolean
;
loading
:
boolean
;
datasource
:
any
;
datasource
:
any
;
$q
:
any
;
datasourceSrv
:
any
;
constructor
(
$scope
,
private
$q
,
private
datasourceSrv
)
{
constructor
(
$scope
,
$injector
)
{
super
(
$scope
);
super
(
$scope
,
$injector
);
this
.
editorTabIndex
=
1
;
this
.
editorTabIndex
=
1
;
if
(
!
this
.
panel
.
targets
)
{
if
(
!
this
.
panel
.
targets
)
{
...
...
public/app/features/panel/panel_ctrl.ts
View file @
c30b1b12
...
@@ -15,12 +15,14 @@ export class PanelCtrl {
...
@@ -15,12 +15,14 @@ export class PanelCtrl {
icon
:
string
;
icon
:
string
;
editorTabs
:
any
;
editorTabs
:
any
;
$scope
:
any
;
$scope
:
any
;
$injector
:
any
;
fullscreen
:
boolean
;
fullscreen
:
boolean
;
inspector
:
any
;
inspector
:
any
;
constructor
(
$scope
)
{
constructor
(
$scope
,
$injector
)
{
var
plugin
=
config
.
panels
[
this
.
panel
.
type
];
var
plugin
=
config
.
panels
[
this
.
panel
.
type
];
this
.
$injector
=
$injector
;
this
.
$scope
=
$scope
;
this
.
$scope
=
$scope
;
this
.
name
=
plugin
.
name
;
this
.
name
=
plugin
.
name
;
this
.
icon
=
plugin
.
info
.
icon
;
this
.
icon
=
plugin
.
info
.
icon
;
...
...
public/app/plugins/panel/test/module.ts
View file @
c30b1b12
...
@@ -9,8 +9,8 @@ function optionsTab() {
...
@@ -9,8 +9,8 @@ function optionsTab() {
export
class
TestPanelCtrl
extends
MetricsPanelCtrl
{
export
class
TestPanelCtrl
extends
MetricsPanelCtrl
{
data
:
any
;
data
:
any
;
constructor
(
$scope
,
$
q
,
datasourceSrv
)
{
constructor
(
$scope
,
$
injector
)
{
super
(
$scope
,
$
q
,
datasourceSrv
);
super
(
$scope
,
$
injector
);
}
}
initEditorTabs
()
{
initEditorTabs
()
{
...
...
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