on master help sign in
Make spawn proxy warning for invite management work
098cfb5Fang
src/bridge/views/InvitesManage.js+4−2
@@ -132,14 +132,14 @@ class InvitesManage extends React.Component {
132 render() {
132 render() {
133
133
134 let spawnProxyWarning = null;
134 let spawnProxyWarning = null;
135− if (this.state.invitesWillWork === Just(false)) {
135+ if (this.state.invitesWillWork.value === false) {
136 spawnProxyWarning = (
136 spawnProxyWarning = (
137 <Warning>
137 <Warning>
138 <h3 className={'mb-2'}>{'Warning'}</h3>
138 <h3 className={'mb-2'}>{'Warning'}</h3>
139 {
139 {
140 'Planets under this star will not be able to send invites ' +
140 'Planets under this star will not be able to send invites ' +
141 'until the invite contract ('
141 'until the invite contract ('
142− }<code>{this.props.contract.delegatedSending.address}</code>{
142+ }<code>{this.contracts.delegatedSending.address}</code>{
143 ') is made spawn proxy for this star.'
143 ') is made spawn proxy for this star.'
144 }
144 }
145 </Warning>
145 </Warning>
@@ -157,6 +157,8 @@ class InvitesManage extends React.Component {
157
157
158 <p>{ 'manage invites here, for stars. can only give invites to child planets' }</p>
158 <p>{ 'manage invites here, for stars. can only give invites to child planets' }</p>
159
159
160+ { spawnProxyWarning }
161+
160 <PointInput
162 <PointInput
161 prop-format='innerlabel'
163 prop-format='innerlabel'
162 prop-size='lg'
164 prop-size='lg'