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
16f7f686
Commit
16f7f686
authored
Jan 09, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Plugins: fixed broken example panel plugin, Fixes #1318
parent
31cf8812
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
src/plugins/custom.panel.example/module.js
+5
-9
No files found.
src/plugins/custom.panel.example/module.js
View file @
16f7f686
...
@@ -2,9 +2,9 @@ define([
...
@@ -2,9 +2,9 @@ define([
'angular'
,
'angular'
,
'app'
,
'app'
,
'lodash'
,
'lodash'
,
'
require
'
,
'
components/panelmeta
'
,
],
],
function
(
angular
,
app
,
_
)
{
function
(
angular
,
app
,
_
,
PanelMeta
)
{
'use strict'
;
'use strict'
;
var
module
=
angular
.
module
(
'grafana.panels.custom'
,
[]);
var
module
=
angular
.
module
(
'grafana.panels.custom'
,
[]);
...
@@ -12,9 +12,9 @@ function (angular, app, _) {
...
@@ -12,9 +12,9 @@ function (angular, app, _) {
module
.
controller
(
'CustomPanelCtrl'
,
function
(
$scope
,
panelSrv
)
{
module
.
controller
(
'CustomPanelCtrl'
,
function
(
$scope
,
panelSrv
)
{
$scope
.
panelMeta
=
{
$scope
.
panelMeta
=
new
PanelMeta
(
{
description
:
"
Example plugin panel"
,
description
:
"
A static text panel that can use plain text, markdown, or (sanitized) HTML"
};
}
)
;
// set and populate defaults
// set and populate defaults
var
_d
=
{
var
_d
=
{
...
@@ -22,10 +22,6 @@ function (angular, app, _) {
...
@@ -22,10 +22,6 @@ function (angular, app, _) {
_
.
defaults
(
$scope
.
panel
,
_d
);
_
.
defaults
(
$scope
.
panel
,
_d
);
$scope
.
init
=
function
()
{
panelSrv
.
init
(
$scope
);
panelSrv
.
init
(
$scope
);
};
$scope
.
init
();
});
});
});
});
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