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

Commit

Permalink
s/Delete Contract/Forget Contract/ (#4237)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr committed Feb 3, 2017
1 parent f187b15 commit e38a0f9
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions js/src/views/Contract/contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,19 +142,16 @@ class Contract extends Component {
>
{ this.renderBlockNumber(account.meta) }
</Header>

<Queries
accountsInfo={ accountsInfo }
contract={ contract }
values={ queryValues }
/>

<Events
isTest={ isTest }
isLoading={ loadingEvents }
events={ allEvents }
/>

{ this.renderDetails(account) }
</Page>
</div>
Expand Down Expand Up @@ -194,7 +191,8 @@ class Contract extends Component {
<Button
icon={ <ContentClear /> }
label='Close'
onClick={ this.closeDetailsDialog } />
onClick={ this.closeDetailsDialog }
/>
);

return (
Expand Down Expand Up @@ -244,28 +242,33 @@ class Contract extends Component {
key='execute'
icon={ <AvPlayArrow /> }
label='execute'
onClick={ this.showExecuteDialog } />,
onClick={ this.showExecuteDialog }
/>,
<Button
key='editmeta'
icon={ <ContentCreate /> }
label='edit'
onClick={ this.showEditDialog } />,
onClick={ this.showEditDialog }
/>,
<Button
key='delete'
icon={ <ActionDelete /> }
label='delete contract'
onClick={ this.showDeleteDialog } />,
label='forget contract'
onClick={ this.showDeleteDialog }
/>,
<Button
key='viewDetails'
icon={ <EyeIcon /> }
label='view details'
onClick={ this.showDetailsDialog } />
onClick={ this.showDetailsDialog }
/>
];

return (
<Actionbar
title='Contract Information'
buttons={ !account ? [] : buttons } />
buttons={ !account ? [] : buttons }
/>
);
}

Expand All @@ -277,7 +280,8 @@ class Contract extends Component {
account={ account }
visible={ showDeleteDialog }
route='/contracts'
onClose={ this.closeDeleteDialog } />
onClose={ this.closeDeleteDialog }
/>
);
}

Expand All @@ -291,7 +295,8 @@ class Contract extends Component {
return (
<EditMeta
account={ account }
onClose={ this.closeEditDialog } />
onClose={ this.closeEditDialog }
/>
);
}

Expand All @@ -309,7 +314,8 @@ class Contract extends Component {
contract={ contract }
fromAddress={ fromAddress }
onClose={ this.closeExecuteDialog }
onFromAddressChange={ this.onFromAddressChange } />
onFromAddressChange={ this.onFromAddressChange }
/>
);
}

Expand Down

0 comments on commit e38a0f9

Please sign in to comment.