Skip to content

Commit

Permalink
Prod fixes of QBD direct
Browse files Browse the repository at this point in the history
  • Loading branch information
DhaaraniCIT committed Dec 12, 2024
1 parent 7b671c9 commit 3299776
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,19 @@ export class QbdDirectOnboardingConnectorComponent implements OnInit {
) { }

triggerDownload(filePath: string) {
// No empty input test, test for non whitespaces like spaces, tabs, etc.
const filePathRegex = /^\s*\S.*$/;
this.isCompanyPathInvalid = filePathRegex.test(filePath);
this.isDownloadfileLoading = true;
this.qbdDirectConnectorService.postQbdDirectConntion({file_location: filePath}).subscribe((connectionResponse: QbdConnectorGet) => {
if(filePath) {

Check failure on line 86 in src/app/integrations/qbd-direct/qbd-direct-onboarding/qbd-direct-onboarding-connector/qbd-direct-onboarding-connector.component.ts

View workflow job for this annotation

GitHub Actions / lint

Expected space(s) after "if"
this.isDownloadfileLoading = true;
this.isCompanyPathInvalid = false;
this.qbdDirectConnectorService.postQbdDirectConntion({file_location: filePath}).subscribe((connectionResponse: QbdConnectorGet) => {
this.password = connectionResponse.password;
this.xmlFileContent = connectionResponse.qwc;
this.triggerManualDownload();
this.showDownloadLink = true;
});
this.isDownloadfileLoading = false;
});
this.isDownloadfileLoading = false;
} else {
this.isCompanyPathInvalid = true;
}
}

triggerManualDownload() {
Expand Down

0 comments on commit 3299776

Please sign in to comment.