Skip to content

Commit

Permalink
Display data source icon in query editor (#4119)
Browse files Browse the repository at this point in the history
  • Loading branch information
swfz authored and kravets-levko committed Sep 2, 2019
1 parent 43f63b1 commit 1f1f853
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions client/app/pages/queries/query.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,12 @@ <h3>
<div class="editor__left__data-source">
<ui-select ng-model="query.data_source_id" remove-selected="false" ng-disabled="!isQueryOwner || !sourceMode"
on-select="updateDataSource()" data-test="SelectDataSource">
<ui-select-match placeholder="Select Data Source...">{{$select.selected.name}}</ui-select-match>
<ui-select-match placeholder="Select Data Source..." class="align-items-center">
<img src="/static/images/db-logos/{{$select.selected.type}}.png" width="20" height="20" style="vertical-align: top">
{{$select.selected.name}}
</ui-select-match>
<ui-select-choices repeat="ds.id as ds in dataSources | filter:$select.search">
{{ds.name}}
<img src="/static/images/db-logos/{{ds.type}}.png" width="20" height="20" class="m-r-5">{{ds.name}}
</ui-select-choices>
</ui-select>
</div>
Expand Down

0 comments on commit 1f1f853

Please sign in to comment.