UI backports (#6332)

* Time should not contribue to overall status. (#6276)

* Add warning to web browser and fix links. (#6232)

* Extension fixes (#6284)

* Fix token symbols in extension.

* Allow connections from firefox extension.

* Add support for ConsenSys multisig wallet (#6153)

* First draft of ConsenSys wallet

* Fix transfer store // WIP Consensys Wallet

* Rename walletABI JSON file

* Fix linting

* Fix wrong daylimit in wallet modal

* Confirm/Revoke ConsensysWallet txs

* Linting

* Change of settings for the Multisig Wallet
This commit is contained in:
Nicolas Gotchac
2017-08-18 16:51:17 +02:00
committed by Arkadiy Paronyan
parent fcc388703f
commit b0f89becfd
25 changed files with 1897 additions and 798 deletions

View File

@@ -35,6 +35,10 @@ export default class Web extends Component {
store = Store.get(this.context.api);
state = {
isWarningDismissed: false
}
componentDidMount () {
this.store.gotoUrl(this.props.params.url);
}
@@ -83,10 +87,36 @@ export default class Web extends Component {
scrolling='auto'
src={ encodedPath }
/>
{ this.renderWarning() }
</div>
);
}
renderWarning () {
if (this.state.isWarningDismissed) {
return null;
}
return (
<div className={ styles.warning }>
<p>
WARNING: The web browser dapp is not safe as a general purpose browser.
Make sure to only visit web3-enabled sites that you trust.
Do not use it to browse web2.0 and never log in to any service - web3 dapps should not require that.
</p>
<div className={ styles.warningClose }>
<a onClick={ this.dismissWarning }>Okay!</a>
</div>
</div>
);
}
dismissWarning = () => {
this.setState({
isWarningDismissed: true
});
};
iframeOnLoad = () => {
this.store.setLoading(false);
};