From 722f5445607a9da276b628e05a51c7aad15c2cca Mon Sep 17 00:00:00 2001 From: Pierre Besson Date: Thu, 25 Jun 2015 13:11:58 +0200 Subject: [PATCH] [save] Only component which have a form are notified when there is a save. --- common/mixin/store-change-behaviour.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/common/mixin/store-change-behaviour.js b/common/mixin/store-change-behaviour.js index 60e24e3b6..92b4e649b 100644 --- a/common/mixin/store-change-behaviour.js +++ b/common/mixin/store-change-behaviour.js @@ -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; } }