Skip to content

Commit

Permalink
qbo hide conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
anishfyle committed Jan 22, 2025
1 parent a90e848 commit de1e54a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
[isImportItemsEnabled]="isImportItemsEnabled"
[destinationOptionsVersion]="'v1'"
[importCodeFields]="importCodeFields"
[errorsVersion]="'v1'">
[errorsVersion]="'v1'"
[exportableExpenseGroupIds]="exportableAccountingExportIds"
[lastExportDetails]="accountingExportSummary">
</app-dashboard-error-section>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ export class QboDashboardComponent implements OnInit {

importCodeFields: any;

lastExportDetails: any;

constructor(
private accountingExportService: AccountingExportService,
private dashboardService: DashboardService,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ export class DashboardErrorSectionComponent implements OnInit {
) { }

get shouldShowErrorSection(): boolean {
return !!(this.exportableExpenseGroupIds?.length && this.lastExportDetails);
if (this.appName === AppName.QBO) {
return !!(this.exportableExpenseGroupIds?.length && this.lastExportDetails);
}
return true;
}

getSourceType() {
Expand Down

0 comments on commit de1e54a

Please sign in to comment.