mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
New Settings UI: Implement logic for features and refresh button.
This commit is contained in:
parent
33afa940dd
commit
75f3b0b7e4
11 changed files with 328 additions and 47 deletions
|
@ -189,3 +189,14 @@ export const connectViaIdAndSecret = function* () {
|
|||
export const refreshMerchantData = function* () {
|
||||
return yield { type: ACTION_TYPES.DO_REFRESH_MERCHANT };
|
||||
};
|
||||
|
||||
/**
|
||||
* Side effect.
|
||||
* Purges all features status data via a REST request.
|
||||
* Refreshes the merchant data via a REST request.
|
||||
*
|
||||
* @return {Action} The action.
|
||||
*/
|
||||
export const refreshFeatureStatuses = function* () {
|
||||
return yield { type: ACTION_TYPES.DO_REFRESH_FEATURES };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue