16b1605a35
This option allows users to bypass the "publish preview" modal. Users can disable it by checking "don't show this again" in the modal, and re-enable it in the Settings Page.
15 lines
567 B
JavaScript
15 lines
567 B
JavaScript
import { SETTINGS } from 'lbry-redux';
|
|
import { connect } from 'react-redux';
|
|
import { makeSelectClientSetting } from 'redux/selectors/settings';
|
|
import { doSetClientSetting } from 'redux/actions/settings';
|
|
import PublishSettings from './view';
|
|
|
|
const select = state => ({
|
|
enablePublishPreview: makeSelectClientSetting(SETTINGS.ENABLE_PUBLISH_PREVIEW)(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
setEnablePublishPreview: value => dispatch(doSetClientSetting(SETTINGS.ENABLE_PUBLISH_PREVIEW, value)),
|
|
});
|
|
|
|
export default connect(select, perform)(PublishSettings);
|