Skip to content

Commit

Permalink
feat(explore): change save button text when users cannot override (ap…
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmud authored Oct 29, 2020
1 parent 68d493e commit e050340
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion superset-frontend/src/explore/components/SaveModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit e050340

Please sign in to comment.