From 51cb485ce3e8cb80c72ec8c732281a78441396fd Mon Sep 17 00:00:00 2001 From: vera-liu Date: Wed, 16 Nov 2016 13:22:14 -0800 Subject: [PATCH] Add standalone to reactified dashboard page (#1596) --- superset/assets/javascripts/dashboard/components/Header.jsx | 2 ++ superset/views.py | 1 + 2 files changed, 3 insertions(+) diff --git a/superset/assets/javascripts/dashboard/components/Header.jsx b/superset/assets/javascripts/dashboard/components/Header.jsx index 2e91a1e2d658c..8124ce1f4192f 100644 --- a/superset/assets/javascripts/dashboard/components/Header.jsx +++ b/superset/assets/javascripts/dashboard/components/Header.jsx @@ -22,7 +22,9 @@ class Header extends React.PureComponent {

{dashboard.dashboard_title}

+ {this.props.dashboard.standalone_mode && + }
diff --git a/superset/views.py b/superset/views.py index 486008d6e43f9..c2a832c5fff9d 100755 --- a/superset/views.py +++ b/superset/views.py @@ -1752,6 +1752,7 @@ def dashboard(**kwargs): # noqa "superset/dashboard.html", dashboard=dash, context=json.dumps(context), + standalone_mode=standalone, ) @has_access