superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: [dashboard] fix standalone mode that hides the navbar (#3284)
Date Mon, 14 Aug 2017 19:24:10 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 9a4e4d0  [dashboard] fix standalone mode that hides the navbar (#3284)
9a4e4d0 is described below

commit 9a4e4d044333a8ab8f8829a439293841ffdc249d
Author: Maxime Beauchemin <maximebeauchemin@gmail.com>
AuthorDate: Mon Aug 14 12:24:05 2017 -0700

    [dashboard] fix standalone mode that hides the navbar (#3284)
---
 superset/views/core.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/superset/views/core.py b/superset/views/core.py
index 67b353a..2088ebd 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -1715,9 +1715,11 @@ class Superset(BaseSupersetView):
         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,
         })
@@ -1731,6 +1733,7 @@ class Superset(BaseSupersetView):
         return self.render_template(
             "superset/dashboard.html",
             entry='dashboard',
+            standalone_mode=standalone_mode,
             title='[dashboard] ' + dash.dashboard_title,
             bootstrap_data=json.dumps(bootstrap_data),
         )

-- 
To stop receiving notification emails like this one, please contact
['"commits@superset.apache.org" <commits@superset.apache.org>'].

Mime
View raw message