mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
part1 (#4641)
This commit is contained in:
parent
97afcd5809
commit
e9b5b1a305
@ -49,7 +49,7 @@ class ExploreChartHeader extends React.PureComponent {
|
|||||||
this.props.actions.createNewSlice(
|
this.props.actions.createNewSlice(
|
||||||
data.can_add, data.can_download, data.can_overwrite,
|
data.can_add, data.can_download, data.can_overwrite,
|
||||||
data.slice, data.form_data);
|
data.slice, data.form_data);
|
||||||
this.props.addHistory({ isReplace: true, title: `[slice] ${data.slice.slice_name}` });
|
this.props.addHistory({ isReplace: true, title: `[chart] ${data.slice.slice_name}` });
|
||||||
} else {
|
} else {
|
||||||
this.props.actions.updateChartTitle(newTitle);
|
this.props.actions.updateChartTitle(newTitle);
|
||||||
}
|
}
|
||||||
@ -97,7 +97,7 @@ class ExploreChartHeader extends React.PureComponent {
|
|||||||
|
|
||||||
<TooltipWrapper
|
<TooltipWrapper
|
||||||
label="edit-desc"
|
label="edit-desc"
|
||||||
tooltip={t('Edit slice properties')}
|
tooltip={t('Edit chart properties')}
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
className="edit-desc-icon"
|
className="edit-desc-icon"
|
||||||
|
@ -129,7 +129,7 @@ class SaveModal extends React.Component {
|
|||||||
>
|
>
|
||||||
<Modal.Header closeButton>
|
<Modal.Header closeButton>
|
||||||
<Modal.Title>
|
<Modal.Title>
|
||||||
{t('Save A Slice')}
|
{t('Save A Chart')}
|
||||||
</Modal.Title>
|
</Modal.Title>
|
||||||
</Modal.Header>
|
</Modal.Header>
|
||||||
<Modal.Body>
|
<Modal.Body>
|
||||||
@ -150,7 +150,7 @@ class SaveModal extends React.Component {
|
|||||||
checked={this.state.action === 'overwrite'}
|
checked={this.state.action === 'overwrite'}
|
||||||
onChange={this.changeAction.bind(this, 'overwrite')}
|
onChange={this.changeAction.bind(this, 'overwrite')}
|
||||||
>
|
>
|
||||||
{t('Overwrite slice %s', this.props.slice.slice_name)}
|
{t('Overwrite chart %s', this.props.slice.slice_name)}
|
||||||
</Radio>
|
</Radio>
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -163,7 +163,7 @@ class SaveModal extends React.Component {
|
|||||||
</Radio>
|
</Radio>
|
||||||
<input
|
<input
|
||||||
name="new_slice_name"
|
name="new_slice_name"
|
||||||
placeholder={t('[slice name]')}
|
placeholder={t('[chart name]')}
|
||||||
onChange={this.onChange.bind(this, 'newSliceName')}
|
onChange={this.onChange.bind(this, 'newSliceName')}
|
||||||
onFocus={this.changeAction.bind(this, 'saveas')}
|
onFocus={this.changeAction.bind(this, 'saveas')}
|
||||||
/>
|
/>
|
||||||
@ -184,7 +184,7 @@ class SaveModal extends React.Component {
|
|||||||
checked={this.state.addToDash === 'existing'}
|
checked={this.state.addToDash === 'existing'}
|
||||||
onChange={this.changeDash.bind(this, 'existing')}
|
onChange={this.changeDash.bind(this, 'existing')}
|
||||||
>
|
>
|
||||||
{t('Add slice to existing dashboard')}
|
{t('Add chart to existing dashboard')}
|
||||||
</Radio>
|
</Radio>
|
||||||
<Select
|
<Select
|
||||||
className="save-modal-selector"
|
className="save-modal-selector"
|
||||||
|
Loading…
Reference in New Issue
Block a user