Skip to content

Commit

Permalink
qbd direct connection phase fix (#1155)
Browse files Browse the repository at this point in the history
  • Loading branch information
DhaaraniCIT authored Jan 20, 2025
1 parent 5bf389c commit cd89ca7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,17 +174,19 @@ export class QbdDirectOnboardingConnectorComponent implements OnInit {
this.connectionStatus = QBDConnectionStatus.INCORRECT_COMPANY_PATH;
this.warningDialogText = 'Incorrect company file path detected. Please check and try again.';
this.isDialogVisible = true;
this.isConnectionLoading = false;
} else if (onboardingState === QbdDirectOnboardingState.INCORRECT_PASSWORD) {
// Set connection status, open dialog, and stop polling
this.connectionStatus = QBDConnectionStatus.IN_CORRECT_PASSWORD;
this.warningDialogText = 'Incorrect password detected. Please check and try again.';
this.isDialogVisible = true;
this.isConnectionLoading = false;
} else if (onboardingState === QbdDirectOnboardingState.DESTINATION_SYNC_IN_PROGRESS || onboardingState === QbdDirectOnboardingState.DESTINATION_SYNC_COMPLETE) {
// Set success status, enable connection CTA, and stop polling
this.connectionStatus = QBDConnectionStatus.SUCCESS;
this.isConnectionCTAEnabled = true;
this.isConnectionLoading = false;
}
this.isConnectionLoading = false;
}

isTerminalStatus(status: QbdDirectOnboardingState): boolean {
Expand Down Expand Up @@ -257,7 +259,7 @@ export class QbdDirectOnboardingConnectorComponent implements OnInit {
if (this.workspaceService.getOnboardingState() === QbdDirectOnboardingState.DESTINATION_SYNC_COMPLETE) {
this.trackingService.integrationsOnboardingCompletion(TrackingApp.QBD_DIRECT, QbdDirectOnboardingState.DESTINATION_SYNC_COMPLETE, 2);
} else {
const oldWorkspaceResponse = workspaceResponse;
const oldWorkspaceResponse = Object.assign({}, workspaceResponse) ;
oldWorkspaceResponse.onboarding_state = QbdDirectOnboardingState.DESTINATION_SYNC_COMPLETE;
this.trackingService.onUpdateEvent(
TrackingApp.QBD_DIRECT,
Expand Down

0 comments on commit cd89ca7

Please sign in to comment.