query editor refactor

This commit is contained in:
Alexander Zobnin
2017-07-26 11:32:09 +03:00
parent b23f6677dd
commit 15f6c00763
6 changed files with 100 additions and 81 deletions

View File

@@ -28,6 +28,13 @@ export class ZabbixQueryController extends QueryCtrl {
{value: 'itemid', text: 'Item ID', mode: c.MODE_ITEMID}
];
this.$scope.editorMode = {
METRICS: c.MODE_METRICS,
TEXT: c.MODE_TEXT,
ITSERVICE: c.MODE_ITSERVICE,
ITEMID: c.MODE_ITEMID
};
this.slaPropertyList = [
{name: "Status", property: "status"},
{name: "SLA", property: "sla"},