Skip to content

Commit

Permalink
[sql lab] sorting database names in dropdowns (#2611)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored Apr 13, 2017
1 parent fc7bd63 commit 2df6baa
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,12 @@ class SqlEditorLeftBar extends React.PureComponent {
<div className="clearfix sql-toolbar scrollbar-content">
<div>
<AsyncSelect
dataEndpoint="/databaseasync/api/read?_flt_0_expose_in_sqllab=1"
dataEndpoint={
'/databaseasync/api/' +
'read?_flt_0_expose_in_sqllab=1&' +
'_oc_DatabaseView=database_name&' +
'_od_DatabaseView=asc'
}
onChange={this.onChange.bind(this)}
value={this.props.queryEditor.dbId}
databaseId={this.props.queryEditor.dbId}
Expand Down

0 comments on commit 2df6baa

Please sign in to comment.