♻️ Update outdated action names

This commit is contained in:
Philipp Stracker 2024-11-20 17:20:39 +01:00
parent 618288529f
commit 80bbf51220
No known key found for this signature in database

View file

@ -53,7 +53,7 @@ export const setIsSaving = ( isSaving ) => ( {
* @param {boolean} isBusy * @param {boolean} isBusy
* @return {Action} The action. * @return {Action} The action.
*/ */
export const setManualConnectionIsBusy = ( isBusy ) => ( { export const setIsBusy = ( isBusy ) => ( {
type: ACTION_TYPES.SET_TRANSIENT, type: ACTION_TYPES.SET_TRANSIENT,
payload: { isBusy }, payload: { isBusy },
} ); } );
@ -179,7 +179,7 @@ export const connectViaIdAndSecret = function* () {
const { clientId, clientSecret, useSandbox } = const { clientId, clientSecret, useSandbox } =
yield select( STORE_NAME ).persistentData(); yield select( STORE_NAME ).persistentData();
yield setManualConnectionIsBusy( true ); yield setIsBusy( true );
const result = yield { const result = yield {
type: ACTION_TYPES.DO_MANUAL_CONNECTION, type: ACTION_TYPES.DO_MANUAL_CONNECTION,
@ -187,7 +187,7 @@ export const connectViaIdAndSecret = function* () {
clientSecret, clientSecret,
useSandbox, useSandbox,
}; };
yield setManualConnectionIsBusy( false ); yield setIsBusy( false );
return result; return result;
}; };