mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
getredash/redash#1940 Remove ?embed-related code in public dashboards
This commit is contained in:
parent
3aa3f7f08d
commit
f5ed122430
@ -8,7 +8,7 @@ const PublicDashboardPage = {
|
||||
bindings: {
|
||||
dashboard: '<',
|
||||
},
|
||||
controller($routeParams, dashboardGridOptions, Dashboard) {
|
||||
controller(dashboardGridOptions, Dashboard) {
|
||||
'ngInject';
|
||||
|
||||
this.dashboardGridOptions = _.extend({}, dashboardGridOptions, {
|
||||
@ -16,12 +16,7 @@ const PublicDashboardPage = {
|
||||
draggable: { enabled: false },
|
||||
});
|
||||
|
||||
// embed in params == headless
|
||||
this.logoUrl = logoUrl;
|
||||
this.headless = $routeParams.embed;
|
||||
if (this.headless) {
|
||||
document.querySelector('body').classList.add('headless');
|
||||
}
|
||||
this.public = true;
|
||||
this.dashboard.widgets = Dashboard.prepareDashboardWidgets(this.dashboard.widgets);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user