mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
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:
commit
61a0aaa858
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user