mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
feat(explore): change save button text when users cannot override (#11281)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user