mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
Add: support for snapshot generation service
This commit is contained in:
parent
2db4b67505
commit
d1a3ed312a
@ -324,6 +324,9 @@
|
||||
$modalInstance.close();
|
||||
}
|
||||
$scope.embedUrl = basePath + 'embed/query/' + query.id + '/visualization/' + visualization.id + '?api_key=' + query.api_key;
|
||||
if (window.snapshotUrlBuilder) {
|
||||
$scope.snapshotUrl = snapshotUrlBuilder(query, visualization);
|
||||
}
|
||||
}]
|
||||
})
|
||||
}
|
||||
|
@ -3,8 +3,15 @@
|
||||
<h4 class="modal-title">Embed Code</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<h5>IFrame Embed</h5>
|
||||
<div>
|
||||
<code><iframe src="{{ embedUrl }}" width="720" height="391"></iframe></code>
|
||||
</div>
|
||||
<span class="text-muted">(height should be adjusted)</span>
|
||||
<div ng-if="snapshotUrl">
|
||||
<h5>Image Embed</h5>
|
||||
<div>
|
||||
<code style="overflow-wrap:break-word;">{{snapshotUrl}}</code>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user