mirror of https://github.com/embarklabs/embark.git
Display alert only when not ipfs
This commit is contained in:
parent
3fe1cd4a2c
commit
3fba585628
|
@ -151,6 +151,10 @@ class Storage extends React.Component {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
isIpfs(){
|
||||||
|
return EmbarkJS.Storage.currentStorageName === 'ipfs';
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return <React.Fragment>
|
return <React.Fragment>
|
||||||
{
|
{
|
||||||
|
@ -215,7 +219,7 @@ class Storage extends React.Component {
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
</Form>
|
</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>
|
<h3>Register to IPNS</h3>
|
||||||
<Form inline onKeyDown={(e) => this.checkEnter(e, this.ipnsRegister)}>
|
<Form inline onKeyDown={(e) => this.checkEnter(e, this.ipnsRegister)}>
|
||||||
|
|
|
@ -14,7 +14,7 @@ module.exports = {
|
||||||
port: 8546, // Port of the blockchain node
|
port: 8546, // Port of the blockchain node
|
||||||
type: "ws" // Type of connection (ws or rpc)
|
type: "ws" // Type of connection (ws or rpc)
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
|
||||||
// merges with the settings in default
|
// merges with the settings in default
|
||||||
// used with "embark run privatenet"
|
// used with "embark run privatenet"
|
||||||
|
|
|
@ -14,7 +14,7 @@ module.exports = {
|
||||||
'status': '0x1a2f3b98e434c02363f3dac3174af93c1d690914'
|
'status': '0x1a2f3b98e434c02363f3dac3174af93c1d690914'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
|
||||||
// merges with the settings in default
|
// merges with the settings in default
|
||||||
// used with "embark run privatenet"
|
// used with "embark run privatenet"
|
||||||
|
|
Loading…
Reference in New Issue