From 0e165ceddc69bcaa40014910729e5d8859eafc1a Mon Sep 17 00:00:00 2001 From: Shinsuke Nara Date: Wed, 24 Jul 2019 19:17:07 +0900 Subject: [PATCH] Hide title in chart by query parameter. --- client/app/components/queries/visualization-embed.html | 4 ++-- client/app/components/queries/visualization-embed.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/app/components/queries/visualization-embed.html b/client/app/components/queries/visualization-embed.html index c368bd7679..ebe592166f 100644 --- a/client/app/components/queries/visualization-embed.html +++ b/client/app/components/queries/visualization-embed.html @@ -1,9 +1,9 @@

- + - {{$ctrl.query.name}} + {{$ctrl.noTitle ? '' : $ctrl.query.name}}
diff --git a/client/app/components/queries/visualization-embed.js b/client/app/components/queries/visualization-embed.js index a27b72f908..fc893be023 100644 --- a/client/app/components/queries/visualization-embed.js +++ b/client/app/components/queries/visualization-embed.js @@ -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]);