Skip to content

Commit

Permalink
[dashboard] fix standalone mode that hides the navbar (#3284)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored Aug 14, 2017
1 parent c9c6bca commit 9a4e4d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1715,9 +1715,11 @@ def dashboard(**kwargs): # noqa
dash_save_perm = \
dash_edit_perm and self.can_access('can_save_dash', 'Superset')

standalone_mode = request.args.get("standalone") == "true"

dashboard_data = dash.data
dashboard_data.update({
'standalone_mode': request.args.get("standalone") == "true",
'standalone_mode': standalone_mode,
'dash_save_perm': dash_save_perm,
'dash_edit_perm': dash_edit_perm,
})
Expand All @@ -1731,6 +1733,7 @@ def dashboard(**kwargs): # noqa
return self.render_template(
"superset/dashboard.html",
entry='dashboard',
standalone_mode=standalone_mode,
title='[dashboard] ' + dash.dashboard_title,
bootstrap_data=json.dumps(bootstrap_data),
)
Expand Down

0 comments on commit 9a4e4d0

Please sign in to comment.