Skip to content

Commit

Permalink
Hide title in chart by query parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinsuke Nara committed Aug 1, 2019
1 parent f78339f commit 0e165ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/app/components/queries/visualization-embed.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div class="tile m-l-10 m-r-10 embed__vis">
<div class="embed-heading p-t-10 p-b-10 p-r-15 p-l-15">
<h3>
<img ng-src="{{$ctrl.logoUrl}}" style="height: 24px;"/>
<img ng-if="!$ctrl.noTitle" ng-src="{{$ctrl.logoUrl}}" style="height: 24px;"/>
<visualization-name visualization="$ctrl.visualization"/>
{{$ctrl.query.name}}
{{$ctrl.noTitle ? '' : $ctrl.query.name}}

<small ng-if="$ctrl.showQueryDescription">
<div class="text-muted" ng-bind-html="$ctrl.query.description | markdown"></div>
Expand Down
1 change: 1 addition & 0 deletions client/app/components/queries/visualization-embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const VisualizationEmbed = {
const visualizationId = parseInt($routeParams.visualizationId, 10);
this.showQueryDescription = $routeParams.showDescription;
this.apiKey = $routeParams.api_key;
this.noTitle = $routeParams.no_title;
this.logoUrl = logoUrl;
this.query = new Query(this.data[0]);
this.queryResult = new QueryResult(this.data[1]);
Expand Down

0 comments on commit 0e165ce

Please sign in to comment.