From 937782dc62bd4fd115eb850eac51940dc466fd9d Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 15 Sep 2021 12:15:36 -0500 Subject: [PATCH] Rename PRELOAD_IMPORT to PLEROMA_PRELOAD_IMPORT --- app/soapbox/actions/preload.js | 4 ++-- app/soapbox/reducers/instance.js | 4 ++-- app/soapbox/reducers/soapbox.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/soapbox/actions/preload.js b/app/soapbox/actions/preload.js index 0f19ec721..7c759d62e 100644 --- a/app/soapbox/actions/preload.js +++ b/app/soapbox/actions/preload.js @@ -1,6 +1,6 @@ import { mapValues } from 'lodash'; -export const PRELOAD_IMPORT = 'PRELOAD_IMPORT'; +export const PLEROMA_PRELOAD_IMPORT = 'PLEROMA_PRELOAD_IMPORT'; // https://git.pleroma.social/pleroma/pleroma-fe/-/merge_requests/1176/diffs const decodeUTF8Base64 = (data) => { @@ -19,7 +19,7 @@ export function preload() { const data = element ? JSON.parse(element.textContent) : {}; return { - type: PRELOAD_IMPORT, + type: PLEROMA_PRELOAD_IMPORT, data: decodeData(data), }; } diff --git a/app/soapbox/reducers/instance.js b/app/soapbox/reducers/instance.js index f6a466d62..189bfe675 100644 --- a/app/soapbox/reducers/instance.js +++ b/app/soapbox/reducers/instance.js @@ -3,7 +3,7 @@ import { INSTANCE_FETCH_FAIL, NODEINFO_FETCH_SUCCESS, } from '../actions/instance'; -import { PRELOAD_IMPORT } from 'soapbox/actions/preload'; +import { PLEROMA_PRELOAD_IMPORT } from 'soapbox/actions/preload'; import { ADMIN_CONFIG_UPDATE_REQUEST, ADMIN_CONFIG_UPDATE_SUCCESS } from 'soapbox/actions/admin'; import { Map as ImmutableMap, List as ImmutableList, fromJS } from 'immutable'; import { ConfigDB } from 'soapbox/utils/config_db'; @@ -82,7 +82,7 @@ const handleAuthFetch = state => { export default function instance(state = initialState, action) { switch(action.type) { - case PRELOAD_IMPORT: + case PLEROMA_PRELOAD_IMPORT: return preloadImport(state, action, '/api/v1/instance'); case INSTANCE_FETCH_SUCCESS: return initialState.mergeDeep(fromJS(action.instance)); diff --git a/app/soapbox/reducers/soapbox.js b/app/soapbox/reducers/soapbox.js index 2c8cd88f3..60e339786 100644 --- a/app/soapbox/reducers/soapbox.js +++ b/app/soapbox/reducers/soapbox.js @@ -3,7 +3,7 @@ import { SOAPBOX_CONFIG_REQUEST_SUCCESS, SOAPBOX_CONFIG_REQUEST_FAIL, } from '../actions/soapbox'; -import { PRELOAD_IMPORT } from 'soapbox/actions/preload'; +import { PLEROMA_PRELOAD_IMPORT } from 'soapbox/actions/preload'; import { Map as ImmutableMap, fromJS } from 'immutable'; import { ConfigDB } from 'soapbox/utils/config_db'; @@ -38,7 +38,7 @@ const preloadImport = (state, action) => { export default function soapbox(state = initialState, action) { switch(action.type) { - case PRELOAD_IMPORT: + case PLEROMA_PRELOAD_IMPORT: return preloadImport(state, action); case SOAPBOX_CONFIG_REQUEST_SUCCESS: return fromJS(action.soapboxConfig);