From fb6547ea7c93157738dbd59961281aa2e00f8b17 Mon Sep 17 00:00:00 2001 From: nachtjasmin Date: Wed, 22 Nov 2023 23:37:06 +0100 Subject: [PATCH] Use upstream code for exclusive lists --- app/javascript/mastodon/features/list_editor/index.jsx | 3 +-- app/javascript/mastodon/reducers/list_editor.js | 6 ------ 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/app/javascript/mastodon/features/list_editor/index.jsx b/app/javascript/mastodon/features/list_editor/index.jsx index 98ae3a6a6..85e90169e 100644 --- a/app/javascript/mastodon/features/list_editor/index.jsx +++ b/app/javascript/mastodon/features/list_editor/index.jsx @@ -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 (
- + diff --git a/app/javascript/mastodon/reducers/list_editor.js b/app/javascript/mastodon/reducers/list_editor.js index cc5caacf6..d3fd62ade 100644 --- a/app/javascript/mastodon/reducers/list_editor.js +++ b/app/javascript/mastodon/reducers/list_editor.js @@ -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 => {