Rename PRELOAD_IMPORT to PLEROMA_PRELOAD_IMPORT

This commit is contained in:
Alex Gleason
2021-09-15 12:15:36 -05:00
parent 3d7619d6b7
commit 937782dc62
3 changed files with 6 additions and 6 deletions

View File

@ -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),
};
}

View File

@ -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));

View File

@ -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);