fix save button should not react to clicks

This commit is contained in:
muerwre 2019-02-06 14:28:32 +07:00
parent 16f5875adc
commit b2760307e4
2 changed files with 7 additions and 3 deletions

View file

@ -65,7 +65,10 @@ class Component extends React.PureComponent<Props, void> {
startProviderMode = () => this.props.setMode(MODES.PROVIDER);
startTrashMode = () => this.props.setMode(MODES.TRASH);
startLogoMode = () => this.props.setMode(MODES.LOGO);
startSaveMode = () => this.props.setMode(MODES.SAVE);
startSaveMode = () => {
if (!this.props.changed) return;
this.props.setMode(MODES.SAVE);
};
render() {
const {