Skip to content

Commit

Permalink
Add standalone to reactified dashboard page (#1596)
Browse files Browse the repository at this point in the history
  • Loading branch information
vera-liu authored Nov 16, 2016
1 parent 83d08b8 commit 51cb485
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions superset/assets/javascripts/dashboard/components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ class Header extends React.PureComponent {
<h1>{dashboard.dashboard_title}</h1>
</div>
<div className="pull-right">
{this.props.dashboard.standalone_mode &&
<Controls dashboard={dashboard} />
}
</div>
<div className="clearfix" />
</div>
Expand Down
1 change: 1 addition & 0 deletions superset/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1752,6 +1752,7 @@ def dashboard(**kwargs): # noqa
"superset/dashboard.html",
dashboard=dash,
context=json.dumps(context),
standalone_mode=standalone,
)

@has_access
Expand Down

0 comments on commit 51cb485

Please sign in to comment.