Commit 16f7f686 by Torkel Ödegaard

Plugins: fixed broken example panel plugin, Fixes #1318

parent 31cf8812
...@@ -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();
}); });
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment