add None to metric column suggestions

pull/11081/head
Sven Klemm 8 years ago
parent 3f4c808cc5
commit 5b5dcabd22
  1. 6
      public/app/plugins/datasource/postgres/query_ctrl.ts

@ -111,7 +111,7 @@ export class PostgresQueryCtrl extends QueryCtrl {
getMetricColumnSegments() {
return this.datasource
.metricFindQuery(this.queryBuilder.buildColumnQuery('metric'))
.then(this.transformToSegments({}))
.then(this.transformToSegments({ addNone: true }))
.catch(this.handleQueryError.bind(this));
}
@ -182,6 +182,10 @@ export class PostgresQueryCtrl extends QueryCtrl {
}
}
if (config.addNone) {
segments.unshift(this.uiSegmentSrv.newSegment({ type: 'template', value: 'None', expandable: true }));
}
return segments;
};
}

Loading…
Cancel
Save