Skip to content

Commit 34af61a

Browse files
committed
Allow source types to be defined by prefixing with @
1 parent 2637dc7 commit 34af61a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/ldf-client-ui.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,13 @@ require('yasgui-yasqe/dist/yasqe.css'); // Make webpack import the css as well
553553
// Let the worker execute the query
554554
var context = {
555555
sources: datasources.map(function (datasource) {
556-
return { type: 'auto', value: datasource };
556+
var type = 'auto';
557+
var posAt = datasource.indexOf('@');
558+
if (posAt > 0) {
559+
type = datasource.substr(0, posAt);
560+
datasource = datasource.substr(posAt + 1, datasource.length);
561+
}
562+
return { type: type, value: datasource };
557563
}),
558564
datetime: parseDate(this.options.datetime),
559565
queryFormat: this.options.queryFormat,

0 commit comments

Comments
 (0)