Merge pull request #2250 from getredash/ds_ui_select

Use ui-select for data source picker for consistent style across browsers
This commit is contained in:
Arik Fraimovich 2018-01-23 09:46:21 +02:00 committed by GitHub
commit 61a0aaa858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,8 +75,12 @@
<main>
<nav resizable r-directions="['right']">
<div class="editor__left__data-source">
<select class="form-control" ng-disabled="!isQueryOwner || !sourceMode" ng-model="query.data_source_id" ng-change="updateDataSource()"
ng-options="ds.id as ds.name for ds in dataSources"></select>
<ui-select ng-model="query.data_source_id" remove-selected="false" ng-disabled="!isQueryOwner || !sourceMode" on-select="updateDataSource()">
<ui-select-match placeholder="Select Data Source...">{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat="ds.id as ds in dataSources">
{{ds.name}}
</ui-select-choices>
</ui-select>
</div>
<div class="editor__left__schema" resizable r-directions="['bottom']" r-flex="true" style="min-height: 0px; height: 300px;" ng-if="sourceMode">