feat(explore): change save button text when users cannot override (#11281)

This commit is contained in:
Jesse Yang 2020-10-29 09:41:29 -07:00 committed by GitHub
parent 68d493ebf5
commit e0503408de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>