mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
feat(explore): change save button text when users cannot override (#11281)
This commit is contained in:
parent
68d493ebf5
commit
e0503408de
@ -232,7 +232,9 @@ class SaveModal extends React.Component {
|
||||
disabled={!this.state.newSliceName}
|
||||
data-test="btn-modal-save"
|
||||
>
|
||||
{t('Save')}
|
||||
{!this.props.can_overwrite && this.props.slice
|
||||
? t('Save as new chart')
|
||||
: t('Save')}
|
||||
</Button>
|
||||
</div>
|
||||
</Modal.Footer>
|
||||
|
Loading…
Reference in New Issue
Block a user