Add isManualConnectionBusy to onboarding hook

This commit is contained in:
Philipp Stracker 2024-11-04 16:50:13 +01:00
parent b3e25ace3f
commit 5a1adc825c
No known key found for this signature in database
2 changed files with 8 additions and 0 deletions

View file

@ -77,6 +77,7 @@ const WelcomeFeatures = () => {
const WelcomeForm = ( { setCompleted } ) => {
const {
isManualConnectionBusy,
isSandboxMode,
setSandboxMode,
isManualConnectionMode,

View file

@ -25,6 +25,10 @@ const useOnboardingDetails = () => {
return select( STORE_NAME ).getTransientData().isReady;
} );
const isManualConnectionBusy = useSelect( ( select ) => {
return select( STORE_NAME ).getTransientData().isManualConnectionBusy;
}, [] );
// Read-only flags.
const flags = useSelect( ( select ) => {
return select( STORE_NAME ).getFlags();
@ -78,6 +82,7 @@ const useOnboardingDetails = () => {
return {
isSaving,
isReady,
isManualConnectionBusy,
step,
setStep: ( value ) => setDetailAndPersist( setOnboardingStep, value ),
completed,
@ -105,6 +110,7 @@ const useOnboardingDetails = () => {
export const useOnboardingStepWelcome = () => {
const {
isSaving,
isManualConnectionBusy,
isSandboxMode,
setSandboxMode,
isManualConnectionMode,
@ -117,6 +123,7 @@ export const useOnboardingStepWelcome = () => {
return {
isSaving,
isManualConnectionBusy,
isSandboxMode,
setSandboxMode,
isManualConnectionMode,