From 91c9d8118a277f55640daf6de1f67c40042b76b3 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Sat, 6 Feb 2016 18:06:36 +0300 Subject: [PATCH] New Grafana plugin api: fixed module.js. --- plugins/datasource-zabbix/module.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/plugins/datasource-zabbix/module.js b/plugins/datasource-zabbix/module.js index ce52d1c..f79b3c6 100644 --- a/plugins/datasource-zabbix/module.js +++ b/plugins/datasource-zabbix/module.js @@ -1,30 +1,30 @@ define([ - './datasource', + './datasource' ], function (ZabbixAPIDatasource) { 'use strict'; - function metricsQueryEditor() { + function ZabbixQueryCtrl() { return {controller: 'ZabbixAPIQueryCtrl', templateUrl: 'public/plugins/zabbix/partials/query.editor.html'}; } - function metricsQueryOptions() { + function ZabbixQueryOptionsCtrl() { return {templateUrl: 'public/plugins/zabbix/partials/query.options.html'}; } - function annotationsQueryEditor() { + function ZabbixAnnotationsQueryCtrl() { return {templateUrl: 'public/plugins/zabbix/partials/annotations.editor.html'}; } - function configView() { + function ZabbixConfigCtrl() { return {templateUrl: 'public/plugins/zabbix/partials/config.html'}; } return { Datasource: ZabbixAPIDatasource, - configView: configView, - annotationsQueryEditor: annotationsQueryEditor, - metricsQueryEditor: metricsQueryEditor, - metricsQueryOptions: metricsQueryOptions, + ConfigCtrl: ZabbixConfigCtrl, + QueryCtrl: ZabbixQueryCtrl, + QueryOptionsCtrl: ZabbixQueryOptionsCtrl, + AnnotationsQueryCtrl: ZabbixAnnotationsQueryCtrl }; });