graphite: remove check so that query is sent even for possible non leaf nodes

This commit is contained in:
Torkel Ödegaard 2017-12-12 17:00:00 +01:00
parent a00af85f36
commit a02086814e
3 changed files with 2 additions and 10 deletions

View File

@ -1,4 +1,4 @@
graphite:
graphite09:
build: blocks/graphite
ports:
- "8080:80"

View File

@ -120,14 +120,6 @@ export default class GraphiteQuery {
this.segments.push({value: "select metric"});
}
hasSelectMetric() {
if (this.segments.length > 0) {
return this.segments[this.segments.length - 1].value === 'select metric';
} else {
return false;
}
}
addFunction(newFunc) {
this.functions.push(newFunc);
this.moveAliasFuncLast();

View File

@ -218,7 +218,7 @@ export class GraphiteQueryCtrl extends QueryCtrl {
var oldTarget = this.queryModel.target.target;
this.updateModelTarget();
if (this.queryModel.target !== oldTarget && !this.queryModel.hasSelectMetric()) {
if (this.queryModel.target !== oldTarget) {
this.panelCtrl.refresh();
}
}