interface: pass station to groupify button

Fixes #3592.
This commit is contained in:
Matilde Park 2020-09-29 14:29:20 -04:00
parent 6f8ff9c2a1
commit 5148df8566
2 changed files with 6 additions and 4 deletions

View File

@ -30,7 +30,7 @@ export class GroupifyButton extends Component {
return this.state.targetGroup ? ( return this.state.targetGroup ? (
<div className="mt4"> <div className="mt4">
<Toggle <Toggle
boolean={inclusive} boolean={this.state.inclusive}
change={this.changeInclusive.bind(this)} change={this.changeInclusive.bind(this)}
/> />
<span className="dib f9 white-d inter ml3"> <span className="dib f9 white-d inter ml3">
@ -52,7 +52,8 @@ export class GroupifyButton extends Component {
associations, associations,
contacts, contacts,
groups, groups,
station station,
changeLoading
} = this.props; } = this.props;
const groupPath = association['group-path']; const groupPath = association['group-path'];

View File

@ -82,6 +82,7 @@ export class SettingsScreen extends Component {
contacts={contacts} contacts={contacts}
groups={groups} groups={groups}
api={api} api={api}
station={station}
changeLoading={this.changeLoading} /> changeLoading={this.changeLoading} />
<DeleteButton <DeleteButton
isOwner={isOwner} isOwner={isOwner}