Merge pull request #743 from embark-framework/feature/hide-alert-on-ipfs
Display alert only when not ipfs
This commit is contained in:
commit
7ef531aacc
|
@ -151,6 +151,10 @@ class Storage extends React.Component {
|
|||
});
|
||||
}
|
||||
|
||||
isIpfs(){
|
||||
return EmbarkJS.Storage.currentProviderName === 'ipfs';
|
||||
}
|
||||
|
||||
render() {
|
||||
return <React.Fragment>
|
||||
{
|
||||
|
@ -215,7 +219,7 @@ class Storage extends React.Component {
|
|||
</FormGroup>
|
||||
</Form>
|
||||
|
||||
<Alert bsStyle="warning">The 2 functions below are only available with IPFS</Alert>
|
||||
{!this.isIpfs() && <Alert bsStyle="warning">The 2 functions below are only available with IPFS</Alert>}
|
||||
|
||||
<h3>Register to IPNS</h3>
|
||||
<Form inline onKeyDown={(e) => this.checkEnter(e, this.ipnsRegister)}>
|
||||
|
|
Loading…
Reference in New Issue