mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
Merge pull request #4579 from michellethomas/removing_title_label
Removing [dashboard] and [slice] titles to show name
This commit is contained in:
commit
4e494b264b
@ -1315,9 +1315,9 @@ class Superset(BaseSupersetView):
|
|||||||
if datasource_type == 'table' \
|
if datasource_type == 'table' \
|
||||||
else datasource.datasource_name
|
else datasource.datasource_name
|
||||||
if slc:
|
if slc:
|
||||||
title = '[slice] ' + slc.slice_name
|
title = slc.slice_name
|
||||||
else:
|
else:
|
||||||
title = '[explore] ' + table_name
|
title = 'Explore - ' + table_name
|
||||||
return self.render_template(
|
return self.render_template(
|
||||||
'superset/basic.html',
|
'superset/basic.html',
|
||||||
bootstrap_data=json.dumps(bootstrap_data),
|
bootstrap_data=json.dumps(bootstrap_data),
|
||||||
@ -2082,7 +2082,7 @@ class Superset(BaseSupersetView):
|
|||||||
'superset/dashboard.html',
|
'superset/dashboard.html',
|
||||||
entry='dashboard',
|
entry='dashboard',
|
||||||
standalone_mode=standalone_mode,
|
standalone_mode=standalone_mode,
|
||||||
title='[dashboard] ' + dash.dashboard_title,
|
title=dash.dashboard_title,
|
||||||
bootstrap_data=json.dumps(bootstrap_data),
|
bootstrap_data=json.dumps(bootstrap_data),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user