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
600ffa72
Commit
600ffa72
authored
Jan 28, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(panels): fixes
parent
9bd3b417
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
public/app/features/panel/panel.ts
+7
-1
public/app/plugins/panel/unknown/module.html
+5
-0
public/app/plugins/panel/unknown/module.ts
+1
-3
No files found.
public/app/features/panel/panel.ts
View file @
600ffa72
...
...
@@ -5,6 +5,12 @@ import config from 'app/core/config';
import
{
PanelCtrl
}
from
'./panel_ctrl'
;
import
{
MetricsPanelCtrl
}
from
'./metrics_panel_ctrl'
;
export
class
DefaultPanelCtrl
extends
PanelCtrl
{
constructor
(
$scope
,
$injector
)
{
super
(
$scope
,
$injector
);
}
}
class
PanelDirective
{
template
:
string
;
templateUrl
:
string
;
...
...
@@ -15,7 +21,7 @@ class PanelDirective {
getDirective
()
{
if
(
!
this
.
controller
)
{
this
.
controller
=
PanelCtrl
;
this
.
controller
=
Default
PanelCtrl
;
}
return
{
...
...
public/app/plugins/panel/unknown/module.html
0 → 100644
View file @
600ffa72
<div
class=
"text-center"
style=
"padding-top: 2rem"
>
Unknown panel type:
<strong>
{{ctrl.panel.type}}
</strong>
</div
public/app/plugins/panel/unknown/module.ts
View file @
600ffa72
...
...
@@ -3,9 +3,7 @@
import
{
PanelDirective
}
from
'../../../features/panel/panel'
;
class
UnknownPanel
extends
PanelDirective
{
template
=
`<div class="text-center" style="padding-top: 2rem">
Unknown panel type: <strong>{{ctrl.panel.type}}</strong>
</div>`
;
templateUrl
=
'public/app/plugins/panel/unknown/module.html'
;
}
...
...
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