Settings: allow immediately saving a changed setting, fixes #800
This commit is contained in:
@ -4,7 +4,7 @@ import { FormattedMessage, injectIntl, defineMessages } from 'react-intl';
|
||||
import { connect } from 'react-redux';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
import { changeSetting } from 'soapbox/actions/settings';
|
||||
import { changeSettingImmediate } from 'soapbox/actions/settings';
|
||||
import snackbar from 'soapbox/actions/snackbar';
|
||||
import Icon from 'soapbox/components/icon';
|
||||
|
||||
@ -31,7 +31,7 @@ class DevelopersMenu extends React.Component {
|
||||
leaveDevelopers = e => {
|
||||
const { intl, dispatch } = this.props;
|
||||
|
||||
dispatch(changeSetting(['isDeveloper'], false));
|
||||
dispatch(changeSettingImmediate(['isDeveloper'], false));
|
||||
dispatch(snackbar.success(intl.formatMessage(messages.leave)));
|
||||
|
||||
this.context.router.history.push('/');
|
||||
|
||||
Reference in New Issue
Block a user