diff --git a/src/app/integrations/bamboo-hr/bamboo-hr.component.html b/src/app/integrations/bamboo-hr/bamboo-hr.component.html
index fd95cf955..7f6881cfd 100644
--- a/src/app/integrations/bamboo-hr/bamboo-hr.component.html
+++ b/src/app/integrations/bamboo-hr/bamboo-hr.component.html
@@ -20,7 +20,6 @@
[isLoading]="isLoading"
[hideRefreshIcon]="hideRefreshIcon"
[showErrorScreen]="showErrorScreen"
- [isRecipeRunning]="bambooHrConfiguration?.recipe_status ? true : false"
[isIntegrationSetupInProgress]="isBambooSetupInProgress"
[isIntegrationConnected]="isBambooConnected"
(connectIntegration)="openDialog()"
@@ -87,4 +86,4 @@
-
\ No newline at end of file
+
diff --git a/src/app/integrations/bamboo-hr/bamboo-hr.component.ts b/src/app/integrations/bamboo-hr/bamboo-hr.component.ts
index 36c0c5ae4..b148412dc 100644
--- a/src/app/integrations/bamboo-hr/bamboo-hr.component.ts
+++ b/src/app/integrations/bamboo-hr/bamboo-hr.component.ts
@@ -27,7 +27,7 @@ export class BambooHrComponent implements OnInit {
isLoading: boolean = true;
- hideRefreshIcon: boolean;
+ hideRefreshIcon: boolean = true;
isConfigurationSaveInProgress: boolean;
@@ -98,6 +98,7 @@ export class BambooHrComponent implements OnInit {
this.isConfigurationSaveInProgress = true;
this.bambooHrService.postConfigurations(payload).subscribe((updatedConfiguration: BambooHRConfiguration) => {
this.bambooHrConfiguration = updatedConfiguration;
+ this.hideRefreshIcon = false;
this.isConfigurationSaveInProgress = false;
this.displayToastMessage(ToastSeverity.SUCCESS, 'Configuration saved successfully');
this.trackingService.trackTimeSpent(Page.CONFIGURE_BAMBOO_HR, this.sessionStartTime);
@@ -123,45 +124,6 @@ export class BambooHrComponent implements OnInit {
});
}
- private setupBambooHr(): void {
- const syncData = [];
-
- if (!this.org.managed_user_id) {
- syncData.push(this.orgService.createWorkatoWorkspace());
- }
-
- if (!this.bambooHrData || !this.bambooHrData.folder_id) {
- syncData.push(this.bambooHrService.createFolder());
- }
-
- if (!this.bambooHrData || !this.bambooHrData.package_id) {
- syncData.push(this.bambooHrService.uploadPackage());
- }
-
- if (!this.org.is_fyle_connected) {
- syncData.push(this.orgService.connectFyle());
- }
-
- if (!this.org.is_sendgrid_connected) {
- syncData.push(this.orgService.connectSendgrid());
- }
-
- if (syncData.length) {
- this.isBambooSetupInProgress = true;
- concat(...syncData).pipe(
- toArray()
- ).subscribe(() => {
- this.isLoading = false;
- this.isBambooSetupInProgress = false;
- }, () => {
- this.isLoading = false;
- this.isBambooSetupInProgress = false;
- this.showErrorScreen = true;
- });
- } else {
- this.isLoading = false;
- }
- }
private getBambooHrConfiguration(): void {
const data = merge(
@@ -175,9 +137,11 @@ export class BambooHrComponent implements OnInit {
this.additionalEmails = response;
} else if (response?.hasOwnProperty('additional_email_options')) {
this.bambooHrConfiguration = response;
+ this.hideRefreshIcon = false;
}
});
- this.setupBambooHr();
+ this.isLoading = false;
+
});
}
diff --git a/src/app/shared/components/helper/app-landing-page-header/app-landing-page-header.component.html b/src/app/shared/components/helper/app-landing-page-header/app-landing-page-header.component.html
index 04af3ed0f..f471438dc 100644
--- a/src/app/shared/components/helper/app-landing-page-header/app-landing-page-header.component.html
+++ b/src/app/shared/components/helper/app-landing-page-header/app-landing-page-header.component.html
@@ -10,7 +10,7 @@
{{ appDescription }}
@@ -30,7 +30,7 @@
-
-
\ No newline at end of file
+
diff --git a/src/app/shared/components/helper/app-landing-page-header/app-landing-page-header.component.ts b/src/app/shared/components/helper/app-landing-page-header/app-landing-page-header.component.ts
index 3627f7384..56026569c 100644
--- a/src/app/shared/components/helper/app-landing-page-header/app-landing-page-header.component.ts
+++ b/src/app/shared/components/helper/app-landing-page-header/app-landing-page-header.component.ts
@@ -81,7 +81,7 @@ export class AppLandingPageHeaderComponent implements OnInit {
connect(): void {
- if (this.appName === this.AppName.TRAVELPERK) {
+ if (this.appName === this.AppName.TRAVELPERK || this.appName === this.AppName.BAMBOO_HR) {
this.initiateOAuth();
return;
} else if (this.postConnectionRoute === 'qbd/onboarding/export_settings') {