Skip to content

Commit

Permalink
Show sql dialect if no doc_url
Browse files Browse the repository at this point in the history
  • Loading branch information
alison985 committed Jun 14, 2017
1 parent 2010969 commit b062398
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/app/pages/queries/query.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ <h3>
<span class="text-muted">Data Source</span>
<select ng-disabled="!isQueryOwner" ng-model="query.data_source_id" ng-change="updateDataSource()"
ng-options="ds.id as ds.name for ds in dataSources"></select>
<a ng-if="dataSource.options.doc_url" ng-href={{dataSource.options.doc_url}}>{{dataSource.type_name}} documentation</a>
<a ng-if="dataSource.options.doc_url != ''" ng-href={{dataSource.options.doc_url}}>{{dataSource.type_name}} documentation</a>
<span ng-if="dataSource.options.doc_url ==''">{{dataSource.type_name}}</span>
<span ng-if="!dataSource.options.doc_url">{{dataSource.type_name}}</span>
<div class="pull-right">
<button class="btn btn-s btn-default" ng-click="togglePublished()" ng-if="query.is_draft && query.id != undefined && (isQueryOwner || currentUser.hasPermission('admin'))">
Expand Down

0 comments on commit b062398

Please sign in to comment.