Commit a0208681 by Torkel Ödegaard

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

parent a00af85f
graphite: graphite09:
build: blocks/graphite build: blocks/graphite
ports: ports:
- "8080:80" - "8080:80"
......
...@@ -120,14 +120,6 @@ export default class GraphiteQuery { ...@@ -120,14 +120,6 @@ export default class GraphiteQuery {
this.segments.push({value: "select metric"}); 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) { addFunction(newFunc) {
this.functions.push(newFunc); this.functions.push(newFunc);
this.moveAliasFuncLast(); this.moveAliasFuncLast();
......
...@@ -218,7 +218,7 @@ export class GraphiteQueryCtrl extends QueryCtrl { ...@@ -218,7 +218,7 @@ export class GraphiteQueryCtrl extends QueryCtrl {
var oldTarget = this.queryModel.target.target; var oldTarget = this.queryModel.target.target;
this.updateModelTarget(); this.updateModelTarget();
if (this.queryModel.target !== oldTarget && !this.queryModel.hasSelectMetric()) { if (this.queryModel.target !== oldTarget) {
this.panelCtrl.refresh(); this.panelCtrl.refresh();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment