|
|
@@ -225,10 +225,14 @@ export class QueryEditorRow extends PureComponent<Props, State> {
|
|
|
};
|
|
|
|
|
|
renderCollapsedText(): string | null {
|
|
|
+ const { datasource } = this.state;
|
|
|
+ if (datasource.getQueryDisplayText) {
|
|
|
+ return datasource.getQueryDisplayText(this.props.query);
|
|
|
+ }
|
|
|
+
|
|
|
if (this.angularScope && this.angularScope.getCollapsedText) {
|
|
|
return this.angularScope.getCollapsedText();
|
|
|
}
|
|
|
-
|
|
|
return null;
|
|
|
}
|
|
|
|