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