Store for EditMeta modal (#3959)

* Store basics

* Tested
This commit is contained in:
Jaco Greeff
2016-12-27 11:02:53 +01:00
committed by Gav Wood
parent 002e8b00d4
commit 2bbefcd438
10 changed files with 493 additions and 97 deletions

View File

@@ -220,7 +220,7 @@ class Contract extends Component {
key='editmeta'
icon={ <ContentCreate /> }
label='edit'
onClick={ this.onEditClick } />,
onClick={ this.showEditDialog } />,
<Button
key='delete'
icon={ <ActionDelete /> }
@@ -262,8 +262,7 @@ class Contract extends Component {
return (
<EditMeta
account={ account }
keys={ ['description'] }
onClose={ this.onEditClick } />
onClose={ this.closeEditDialog } />
);
}
@@ -312,10 +311,12 @@ class Contract extends Component {
});
}
onEditClick = () => {
this.setState({
showEditDialog: !this.state.showEditDialog
});
closeEditDialog = () => {
this.setState({ showEditDialog: false });
}
showEditDialog = () => {
this.setState({ showEditDialog: true });
}
closeDeleteDialog = () => {