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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
src/plugins/custom.panel.example/module.js
+6
-10
No files found.
src/plugins/custom.panel.example/module.js
View file @
16f7f686
...
...
@@ -2,9 +2,9 @@ define([
'angular'
,
'app'
,
'lodash'
,
'
require
'
,
'
components/panelmeta
'
,
],
function
(
angular
,
app
,
_
)
{
function
(
angular
,
app
,
_
,
PanelMeta
)
{
'use strict'
;
var
module
=
angular
.
module
(
'grafana.panels.custom'
,
[]);
...
...
@@ -12,9 +12,9 @@ function (angular, app, _) {
module
.
controller
(
'CustomPanelCtrl'
,
function
(
$scope
,
panelSrv
)
{
$scope
.
panelMeta
=
{
description
:
"
Example plugin panel"
,
};
$scope
.
panelMeta
=
new
PanelMeta
(
{
description
:
"
A static text panel that can use plain text, markdown, or (sanitized) HTML"
}
)
;
// set and populate defaults
var
_d
=
{
...
...
@@ -22,10 +22,6 @@ function (angular, app, _) {
_
.
defaults
(
$scope
.
panel
,
_d
);
$scope
.
init
=
function
()
{
panelSrv
.
init
(
$scope
);
};
$scope
.
init
();
panelSrv
.
init
(
$scope
);
});
});
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