Disable btn on action in Subscriptions
This commit is contained in:
parent
ceebb5d5ad
commit
3ce7d65bb8
3 changed files with 22 additions and 9 deletions
|
|
@ -249,6 +249,7 @@ class SelectionMap extends Component {
|
|||
}
|
||||
<Button
|
||||
bsStyle="success"
|
||||
disabled={this.props.disableFstBtn}
|
||||
onClick={event => this.onFstBtn(event)}
|
||||
>
|
||||
{this.props.fstBtn}
|
||||
|
|
@ -282,6 +283,7 @@ SelectionMap.propTypes = {
|
|||
onRemove: PropTypes.func,
|
||||
action: PropTypes.number.isRequired,
|
||||
loadingSubs: PropTypes.bool.isRequired,
|
||||
disableFstBtn: PropTypes.bool.isRequired,
|
||||
currentSubs: PropTypes.arrayOf(PropTypes.shape({
|
||||
location: PropTypes.shape({ latitude: PropTypes.number, longitude: PropTypes.number }).isRequired,
|
||||
distance: PropTypes.number.isRequired
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue