Skip to content

Commit

Permalink
Fix embed pages
Browse files Browse the repository at this point in the history
  • Loading branch information
kravets-levko committed Dec 31, 2019
1 parent deaa1e2 commit 76461a8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
16 changes: 9 additions & 7 deletions client/app/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,15 @@ function registerPages() {
ngModule.config($routeProvider => {
each(routes, (route, path) => {
logger("Registering route: %s", path);
route.authenticated = true;
route.resolve = extend(
{
__organizationStatus: () => organizationStatus.refresh(),
},
route.resolve
);
route.authenticated = route.authenticated !== false; // could be set to `false` do disable auth
if (route.authenticated) {
route.resolve = extend(
{
__organizationStatus: () => organizationStatus.refresh(),
},
route.resolve
);
}
$routeProvider.when(path, route);
});
});
Expand Down
1 change: 1 addition & 0 deletions client/app/pages/dashboards/PublicDashboardPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export default function init(ngModule) {

return {
"/public/dashboards/:token": {
authenticated: false,
template: "<public-dashboard-page></public-dashboard-page>",
reloadOnSearch: false,
resolve: {
Expand Down
1 change: 1 addition & 0 deletions client/app/pages/queries/VisualizationEmbed.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ export default function init(ngModule) {

return {
"/embed/query/:queryId/visualization/:visualizationId": {
authenticated: false,
template: '<visualization-embed query="$resolve.query"></visualization-embed>',
reloadOnSearch: false,
resolve: {
Expand Down

0 comments on commit 76461a8

Please sign in to comment.