Skip to content

Commit

Permalink
handle change data source case
Browse files Browse the repository at this point in the history
Not ideal solution but does prevent bad information from showing to the
user and lets them know what to do to get the right information.
  • Loading branch information
alison985 authored and Allen Short committed Dec 6, 2017
1 parent 9bf5cc2 commit 565caa3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/app/pages/queries/query.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ <h3>
<select id="data-source-selection" class="form-control m-b-10" 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>
<get-data-source-version></get-data-source-version>
<get-data-source-version id='data-source-version'></get-data-source-version>
<schema-browser class="schema-container"
schema="schema"
on-refresh="refreshSchema()"
Expand Down
1 change: 1 addition & 0 deletions client/app/pages/queries/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ function QueryViewCtrl(

updateSchema();
$scope.dataSource = find($scope.dataSources, ds => ds.id === $scope.query.data_source_id);
document.getElementById('data-source-version').innerHTML = '<span class=\'fa fa-refresh\' data-toggle=\'tooltip\' data-placement=\'right\' tooltip title=\'refresh page to get version\'></span>';
};

$scope.setVisualizationTab = (visualization) => {
Expand Down

0 comments on commit 565caa3

Please sign in to comment.