added selectors and template saga for updating legacy certificates
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
3fc42b1ea8
commit
68854db61e
@@ -5,6 +5,10 @@ import { createDangerZoneSaga } from './danger-zone-saga';
|
||||
import { createSettingsSagas } from './settings-sagas';
|
||||
import { createUpdateMyEmailSaga } from './update-email-saga';
|
||||
|
||||
// prettier-ignore
|
||||
import { createUpdateLegacyCertificateSaga } from
|
||||
'./update-legacy-certificate-saga';
|
||||
|
||||
export const ns = 'settings';
|
||||
|
||||
const defaultFetchState = {
|
||||
@@ -27,6 +31,7 @@ export const types = createTypes(
|
||||
...createAsyncTypes('submitNewAbout'),
|
||||
...createAsyncTypes('submitNewUsername'),
|
||||
...createAsyncTypes('updateMyEmail'),
|
||||
...createAsyncTypes('updateLegacyCertificate'),
|
||||
...createAsyncTypes('updateUserFlag'),
|
||||
...createAsyncTypes('submitProfileUI'),
|
||||
...createAsyncTypes('verifyCert'),
|
||||
@@ -39,7 +44,8 @@ export const types = createTypes(
|
||||
export const sagas = [
|
||||
...createSettingsSagas(types),
|
||||
...createUpdateMyEmailSaga(types),
|
||||
...createDangerZoneSaga(types)
|
||||
...createDangerZoneSaga(types),
|
||||
...createUpdateLegacyCertificateSaga(types)
|
||||
];
|
||||
|
||||
const checkForSuccessPayload = ({ type, payload }) =>
|
||||
@@ -72,6 +78,16 @@ export const updateMyEmail = createAction(types.updateMyEmail);
|
||||
export const updateMyEmailComplete = createAction(types.updateMyEmailComplete);
|
||||
export const updateMyEmailError = createAction(types.updateMyEmailError);
|
||||
|
||||
export const updateLegacyCertificate = createAction(
|
||||
types.updateLegacyCertificate
|
||||
);
|
||||
export const updateLegacyCertificateComplete = createAction(
|
||||
types.updateLegacyCertificateComplete
|
||||
);
|
||||
export const updateLegacyCertificateError = createAction(
|
||||
types.updateLegacyCertificateError
|
||||
);
|
||||
|
||||
export const updateUserFlag = createAction(types.updateUserFlag);
|
||||
export const updateUserFlagComplete = createAction(
|
||||
types.updateUserFlagComplete,
|
||||
|
Reference in New Issue
Block a user