Skip to content

Commit

Permalink
feat: support conditionally rendering the business central integratio…
Browse files Browse the repository at this point in the history
…n for new users (#897)
  • Loading branch information
1 parent e3eb42b commit e4f91f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/app/core/models/org/org.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export type Org = {
is_fyle_connected: boolean;
is_sendgrid_connected: boolean;
allow_travelperk: boolean;
allow_dynamics: boolean;
created_at: Date;
updated_at: Date;
}
Expand Down
12 changes: 6 additions & 6 deletions src/app/integrations/landing/landing.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
Sage Intacct
</span>
</div>
<div *ngIf="exposeApps.BUSINESS_CENTRAL" class="landing--accounting-app tw-mr-20-px tw-mt-20-px" [ngClass]="{'tw-shadow-app-card': brandingConfig.brandId === 'fyle', 'tw-shadow-shadow-level-1': brandingConfig.brandId === 'co'}" (click)="openInAppIntegration(InAppIntegration.BUSINESS_CENTRAL)">
<img src="assets/logos/BusinessCentral-logo.svg" class="tw-mt-[-20px]" width="50px" height="60px" />
<div *ngIf="exposeApps.SAGE300" class="landing--accounting-app tw-mr-20-px tw-mt-20-px" [ngClass]="{'tw-shadow-app-card': brandingConfig.brandId === 'fyle', 'tw-shadow-shadow-level-1': brandingConfig.brandId === 'co'}" (click)="openInAppIntegration(InAppIntegration.SAGE300)">
<img src="assets/logos/sage300-logo.svg" width="110px" height="60px" />
<span class="landing--accounting-app-name">
Dynamics 365 Business Central
Sage 300 CRE
</span>
</div>
</div>
Expand All @@ -68,10 +68,10 @@
QuickBooks Online
</span>
</div>
<div *ngIf="exposeApps.SAGE300" class="landing--accounting-app tw-mr-20-px tw-mt-20-px" [ngClass]="{'tw-shadow-app-card': brandingConfig.brandId === 'fyle', 'tw-shadow-shadow-level-1': brandingConfig.brandId === 'co'}" (click)="openInAppIntegration(InAppIntegration.SAGE300)">
<img src="assets/logos/sage300-logo.svg" width="110px" height="60px" />
<div *ngIf="exposeApps.BUSINESS_CENTRAL && org.allow_dynamics" class="landing--accounting-app tw-mr-20-px tw-mt-20-px" [ngClass]="{'tw-shadow-app-card': brandingConfig.brandId === 'fyle', 'tw-shadow-shadow-level-1': brandingConfig.brandId === 'co'}" (click)="openInAppIntegration(InAppIntegration.BUSINESS_CENTRAL)">
<img src="assets/logos/BusinessCentral-logo.svg" class="tw-mt-[-20px]" width="50px" height="60px" />
<span class="landing--accounting-app-name">
Sage 300 CRE
Dynamics 365 Business Central
</span>
</div>
</div>
Expand Down

0 comments on commit e4f91f4

Please sign in to comment.