Skip to content

Commit

Permalink
Notices: Add Jetpack module activation notices to middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Jan 30, 2017
1 parent f98aad8 commit 69f348e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions client/state/notices/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ import {
GRAVATAR_UPLOAD_REQUEST_FAILURE,
GRAVATAR_UPLOAD_REQUEST_SUCCESS,
GUIDED_TRANSFER_HOST_DETAILS_SAVE_SUCCESS,
JETPACK_MODULE_ACTIVATE_SUCCESS,
JETPACK_MODULE_DEACTIVATE_SUCCESS,
JETPACK_MODULE_ACTIVATE_FAILURE,
JETPACK_MODULE_DEACTIVATE_FAILURE,
KEYRING_CONNECTION_DELETE,
POST_DELETE_FAILURE,
POST_DELETE_SUCCESS,
Expand Down Expand Up @@ -56,6 +60,7 @@ import {
onAccountRecoveryPhoneValidationSuccess,
onAccountRecoveryPhoneValidationFailed,
} from './account-recovery';
import { onJetpackModuleActivationActionMessage } from './jetpack-modules';

/**
* Handlers
Expand Down Expand Up @@ -190,6 +195,10 @@ export const handlers = {
},
[ GRAVATAR_UPLOAD_REQUEST_FAILURE ]: dispatchError( translate( 'New Gravatar was not saved.' ) ),
[ GRAVATAR_UPLOAD_REQUEST_SUCCESS ]: dispatchSuccess( translate( 'New Gravatar uploaded successfully!' ) ),
[ JETPACK_MODULE_ACTIVATE_SUCCESS ]: onJetpackModuleActivationActionMessage,
[ JETPACK_MODULE_DEACTIVATE_SUCCESS ]: onJetpackModuleActivationActionMessage,
[ JETPACK_MODULE_ACTIVATE_FAILURE ]: onJetpackModuleActivationActionMessage,
[ JETPACK_MODULE_DEACTIVATE_FAILURE ]: onJetpackModuleActivationActionMessage,
[ KEYRING_CONNECTION_DELETE ]: onPublicizeConnectionDelete,
[ POST_DELETE_FAILURE ]: onPostDeleteFailure,
[ POST_DELETE_SUCCESS ]: dispatchSuccess( translate( 'Post successfully deleted' ) ),
Expand Down

0 comments on commit 69f348e

Please sign in to comment.