Skip to content

Commit

Permalink
Merge pull request #129 from KleeGroup/save-message-fix
Browse files Browse the repository at this point in the history
[save] Only component  which have a form are notified when there is a…
  • Loading branch information
pierr committed Jun 25, 2015
2 parents 1f5a1fb + 722f544 commit 79fee4e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions common/mixin/store-change-behaviour.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ var changeBehaviourMixin = {
Focus.message.addInformationMessage('detail.saving');
break;*/
case 'saved':
Focus.message.addSuccessMessage('detail.saved');
//Change the page mode as edit
this.setState({isEdit: false});
if(this.props.hasForm){
Focus.message.addSuccessMessage('detail.saved');
//Change the page mode as edit
this.setState({isEdit: false});
}
break;
}
}
Expand Down

0 comments on commit 79fee4e

Please sign in to comment.