on master help sign in
- Add ‘loaded’ conditional to genKeyfile display message
b7de3edChris Johnson
src/views/GenKeyfile.js+4−4
@@ -97,7 +97,7 @@ class GenKeyfile extends React.Component {
97
97
98 render() {
98 render() {
99 const { point, pointDetails, revision } = this.getPointDetails();
99 const { point, pointDetails, revision } = this.getPointDetails();
100− const { keyfile, loading } = this.state
100+ const { keyfile, loaded } = this.state
101
101
102 return (
102 return (
103 <Row>
103 <Row>
@@ -108,17 +108,17 @@ class GenKeyfile extends React.Component {
108 { "Download a private key file for booting this point in Arvo." }
108 { "Download a private key file for booting this point in Arvo." }
109 </P>
109 </P>
110
110
111− { keyfile === '' &&
111+ { keyfile === '' && !loaded &&
112 <P>
112 <P>
113 { "Generating keyfile..." }
113 { "Generating keyfile..." }
114 </P>
114 </P>
115 }
115 }
116
116
117− { keyfile === '' &&
117+ { keyfile === '' && loaded &&
118 <P>
118 <P>
119 <b>Warning: </b>
119 <b>Warning: </b>
120 { `No valid network seed detected. To generate a keyfile, you
120 { `No valid network seed detected. To generate a keyfile, you
121− must reset your networking keys, or try logging in with your
121+ must reset your networking keys, or try logging in with your
122 master ticket or management mnemonic` }
122 master ticket or management mnemonic` }
123 </P>
123 </P>
124 }
124 }