Issue #72 - changed plugin.json files and fixed templates path
for new plugin model. Can load plugins from any place.
This commit is contained in:
@@ -7,15 +7,15 @@ define([
|
||||
var module = angular.module('grafana.directives');
|
||||
|
||||
module.directive('metricQueryEditorZabbix', function() {
|
||||
return {controller: 'ZabbixAPIQueryCtrl', templateUrl: 'app/plugins/datasource/zabbix/partials/query.editor.html'};
|
||||
return {controller: 'ZabbixAPIQueryCtrl', templateUrl: 'public/plugins/zabbix/partials/query.editor.html'};
|
||||
});
|
||||
|
||||
module.directive('metricQueryOptionsZabbix', function() {
|
||||
return {templateUrl: 'app/plugins/datasource/zabbix/partials/query.options.html'};
|
||||
return {templateUrl: 'public/plugins/zabbix/partials/query.options.html'};
|
||||
});
|
||||
|
||||
module.directive('annotationsQueryEditorZabbix', function() {
|
||||
return {templateUrl: 'app/plugins/datasource/zabbix/partials/annotations.editor.html'};
|
||||
return {templateUrl: 'public/plugins/zabbix/partials/annotations.editor.html'};
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
@@ -5,10 +5,15 @@
|
||||
"type": "zabbix",
|
||||
"serviceName": "ZabbixAPIDatasource",
|
||||
|
||||
"module": "app/plugins/datasource/zabbix/datasource",
|
||||
"module": "plugins/zabbix/datasource",
|
||||
|
||||
"partials": {
|
||||
"config": "app/plugins/datasource/zabbix/partials/config.html"
|
||||
"config": "public/plugins/zabbix/partials/config.html"
|
||||
},
|
||||
|
||||
"staticRoot": {
|
||||
"url": "zabbix",
|
||||
"path": "."
|
||||
},
|
||||
|
||||
"metrics": true,
|
||||
|
||||
Reference in New Issue
Block a user