Iss #152 - fixed query editor.
Query editor now use app/plugins/sdk for work. Fixed controller and template.
This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
define([
|
||||
'./datasource'
|
||||
'./datasource',
|
||||
'./queryCtrl'
|
||||
],
|
||||
function (ZabbixAPIDatasource) {
|
||||
function (ZabbixAPIDatasource, ZabbixQueryCtrl) {
|
||||
'use strict';
|
||||
|
||||
function ZabbixQueryCtrl() {
|
||||
return {controller: 'ZabbixAPIQueryCtrl', templateUrl: 'public/plugins/zabbix/partials/query.editor.html'};
|
||||
}
|
||||
|
||||
function ZabbixQueryOptionsCtrl() {
|
||||
return {templateUrl: 'public/plugins/zabbix/partials/query.options.html'};
|
||||
}
|
||||
@@ -22,8 +19,8 @@ function (ZabbixAPIDatasource) {
|
||||
|
||||
return {
|
||||
Datasource: ZabbixAPIDatasource,
|
||||
ConfigCtrl: ZabbixConfigCtrl,
|
||||
QueryCtrl: ZabbixQueryCtrl,
|
||||
ConfigCtrl: ZabbixConfigCtrl,
|
||||
QueryOptionsCtrl: ZabbixQueryOptionsCtrl,
|
||||
AnnotationsQueryCtrl: ZabbixAnnotationsQueryCtrl
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user