mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
Fix metric formating in Dashboard view + some refactoring (#2598)
* Fix metric formating in Dashboard view + some refactoring * Fixing build
This commit is contained in:
committed by
GitHub
parent
93c6597cf4
commit
31283f1424
@@ -43,7 +43,7 @@ class Controls extends React.PureComponent {
|
||||
}
|
||||
render() {
|
||||
const dashboard = this.props.dashboard;
|
||||
const canSave = dashboard.context.dash_save_perm;
|
||||
const canSave = dashboard.dash_save_perm;
|
||||
const emailBody = `Checkout this dashboard: ${window.location.href}`;
|
||||
const emailLink = 'mailto:?Subject=Superset%20Dashboard%20'
|
||||
+ `${dashboard.dashboard_title}&Body=${emailBody}`;
|
||||
|
||||
@@ -25,7 +25,7 @@ class Header extends React.PureComponent {
|
||||
</h1>
|
||||
</div>
|
||||
<div className="pull-right" style={{ marginTop: '35px' }}>
|
||||
{!this.props.dashboard.context.standalone_mode &&
|
||||
{!this.props.dashboard.standalone_mode &&
|
||||
<Controls dashboard={dashboard} />
|
||||
}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user