Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Merge pull request #623 from metasfresh/dev-619
Browse files Browse the repository at this point in the history
#619 Window confirmation for all of attribute widgets
  • Loading branch information
damianprzygodzki committed Apr 10, 2017
2 parents 24ff372 + 2feed30 commit 0b302f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/widget/Attributes/Attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ class Attributes extends Component {

//there are required values that are not set. just close
if (mandatory.length && !valid){
return this.handleToggle(false);
if(window.confirm('Do you really want to leave?')){
this.handleToggle(false);
}
return;
}

dispatch(completeRequest(attributeType, attrId)).then(response => {
Expand Down

0 comments on commit 0b302f7

Please sign in to comment.