mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 17:38:54 +00:00
Fix: embeds don't work after minifcation
This commit is contained in:
parent
1367b63ae1
commit
8940533176
@ -8,6 +8,8 @@ const VisualizationEmbed = {
|
||||
data: '<',
|
||||
},
|
||||
controller($routeParams, Query, QueryResult) {
|
||||
'ngInject';
|
||||
|
||||
document.querySelector('body').classList.add('headless');
|
||||
const visualizationId = parseInt($routeParams.visualizationId, 10);
|
||||
this.showQueryDescription = $routeParams.showDescription;
|
||||
@ -24,6 +26,8 @@ export default function (ngModule) {
|
||||
ngModule.component('visualizationEmbed', VisualizationEmbed);
|
||||
|
||||
function session($http, $route, Auth) {
|
||||
'ngInject';
|
||||
|
||||
const apiKey = $route.current.params.api_key;
|
||||
Auth.setApiKey(apiKey);
|
||||
return Auth.loadConfig();
|
||||
|
Loading…
Reference in New Issue
Block a user