Added subscriptions cancel

This commit is contained in:
vjrj 2018-03-02 12:53:03 +01:00
parent f17fd13c2a
commit 38b4769806
3 changed files with 10 additions and 5 deletions

View file

@ -244,7 +244,7 @@ class SelectionMap extends Component {
bsStyle="warning"
onClick={event => this.onSndBtn(event)}
>
{this.props.sndBtn}
{this.props.sndBtn.match(/^fa-/) ? <i className={`fa ${this.props.sndBtn}`} /> : this.props.sndBtn }
</Button>
}
<Button

View file

@ -68,6 +68,7 @@ class SubscriptionEditor extends React.Component {
zoom={this.state.zoom}
distance={doc.distance}
focusInput={focus}
history={this.props.history}
disableFstBtn={this.state.disableFstBtn}
subsBtn={isEdit ? t('Actualizar') : t(isAnyMobile ? 'Suscribirme a este radio' : 'Suscribirme a fuegos en este radio')}
onSubs={state => this.onSubs(state)}