Use upstream code for exclusive lists
This commit is contained in:
parent
bf4a523877
commit
8802fd30b5
|
@ -30,7 +30,6 @@ class ListEditor extends ImmutablePureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
listId: PropTypes.string.isRequired,
|
listId: PropTypes.string.isRequired,
|
||||||
isExclusive: PropTypes.bool.isRequired,
|
|
||||||
onClose: PropTypes.func.isRequired,
|
onClose: PropTypes.func.isRequired,
|
||||||
intl: PropTypes.object.isRequired,
|
intl: PropTypes.object.isRequired,
|
||||||
onInitialize: PropTypes.func.isRequired,
|
onInitialize: PropTypes.func.isRequired,
|
||||||
|
@ -56,7 +55,7 @@ class ListEditor extends ImmutablePureComponent {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='modal-root__modal list-editor'>
|
<div className='modal-root__modal list-editor'>
|
||||||
<EditListForm isExclusive={this.props.isExclusive} />
|
<EditListForm />
|
||||||
|
|
||||||
<Search />
|
<Search />
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@ import {
|
||||||
LIST_EDITOR_RESET,
|
LIST_EDITOR_RESET,
|
||||||
LIST_EDITOR_SETUP,
|
LIST_EDITOR_SETUP,
|
||||||
LIST_EDITOR_TITLE_CHANGE,
|
LIST_EDITOR_TITLE_CHANGE,
|
||||||
LIST_EDITOR_IS_EXCLUSIVE_CHANGE,
|
|
||||||
LIST_ACCOUNTS_FETCH_REQUEST,
|
LIST_ACCOUNTS_FETCH_REQUEST,
|
||||||
LIST_ACCOUNTS_FETCH_SUCCESS,
|
LIST_ACCOUNTS_FETCH_SUCCESS,
|
||||||
LIST_ACCOUNTS_FETCH_FAIL,
|
LIST_ACCOUNTS_FETCH_FAIL,
|
||||||
|
@ -56,11 +55,6 @@ export default function listEditorReducer(state = initialState, action) {
|
||||||
map.set('title', action.value);
|
map.set('title', action.value);
|
||||||
map.set('isChanged', true);
|
map.set('isChanged', true);
|
||||||
});
|
});
|
||||||
case LIST_EDITOR_IS_EXCLUSIVE_CHANGE:
|
|
||||||
return state.withMutations(map => {
|
|
||||||
map.set('isExclusive', action.value);
|
|
||||||
map.set('isChanged', true);
|
|
||||||
});
|
|
||||||
case LIST_CREATE_REQUEST:
|
case LIST_CREATE_REQUEST:
|
||||||
case LIST_UPDATE_REQUEST:
|
case LIST_UPDATE_REQUEST:
|
||||||
return state.withMutations(map => {
|
return state.withMutations(map => {
|
||||||
|
|
Loading…
Reference in New Issue