fix send to edengineer button disabled for some people

This commit is contained in:
willyb321
2018-07-06 07:09:05 +10:00
parent 3dda4e24bf
commit fb073acdc3

View File

@@ -239,7 +239,7 @@ export default class ModalShoppingList extends TranslatedComponent {
</select>
<br/>
<p hidden={!this.state.failed} id={'failed'} className={'l'}>Failed to send to EDEngineer (Launch EDEngineer and make sure the API is started then refresh the page.)</p>
<button className={'l cb dismiss cap'} disabled={!this.state.cmdrName || !!this.state.failed} onClick={this.sendToEDEng}>{translate('Send To EDEngineer')}</button>
<button className={'l cb dismiss cap'} disabled={!!this.state.failed} onClick={this.sendToEDEng}>{translate('Send To EDEngineer')}</button>
<button className={'r dismiss cap'} onClick={this.context.hideModal}>{translate('close')}</button>
</div>;
}