Fix push-subscription settings when using pc and phone
This commit is contained in:
parent
7d5280a71d
commit
dccd09debf
1 changed files with 6 additions and 1 deletions
|
@ -29,7 +29,12 @@ export default class ColumnSettings extends PureComponent {
|
|||
};
|
||||
|
||||
onPushChange = (path, checked) => {
|
||||
const { pushSettings } = this.props;
|
||||
const showPushSettings = pushSettings.get('browserSupport') && pushSettings.get('isSubscribed');
|
||||
|
||||
if (showPushSettings) {
|
||||
this.props.onChange(['push', ...path], checked);
|
||||
}
|
||||
};
|
||||
|
||||
render () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue