Skip to content

Commit

Permalink
Expose netsuite new app (#828)
Browse files Browse the repository at this point in the history
Expose netsuite new app
  • Loading branch information
ashwin1111 authored Jun 11, 2024
1 parent a14e2fd commit 79d3545
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/core/services/common/events.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class EventsService {
this.qboLogin.emit(message.data.redirectUri);
} else if (message.data.redirectUri.includes('xero')) {
this.xeroLogin.emit(message.data.redirectUri);
} else if (brandingConfig.brandId === 'co' && message.data.redirectUri.includes('netsuite')) {
} else if (message.data.redirectUri.includes('netsuite')) {
this.netsuiteLogin.emit(message.data.redirectUri);
} else {
this.windowService.openInNewTab(message.data.redirectUri);
Expand Down
3 changes: 0 additions & 3 deletions src/app/integrations/landing/landing.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@
<img src="assets/logos/netsuite-logo.png" width="120px" height="60px" />
<span class="landing--accounting-app-name">
NetSuite
<div *ngIf="brandingConfig.brandId !== 'co'" class="landing--accounting-app-open">
<app-svg-icon [svgSource]="'open-in-new-tab'" [width]="'16px'" [height]="'16px'"></app-svg-icon>
</div>
</span>
</div>
<div *ngIf="exposeApps.QBD" 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.QBD)">
Expand Down
2 changes: 1 addition & 1 deletion src/app/integrations/landing/landing.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class LandingComponent implements OnInit {
};

private readonly integrationCallbackUrlMap: IntegrationCallbackUrl = {
[AccountingIntegrationApp.NETSUITE]: [brandingConfig.brandId === 'co' ? `${environment.fyle_app_url}/netsuite` : environment.ns_callback_url, environment.ns_client_id],
[AccountingIntegrationApp.NETSUITE]: [`${environment.fyle_app_url}/netsuite`, environment.ns_client_id],
[AccountingIntegrationApp.QBO]: [`${environment.fyle_app_url}/quickbooks`, environment.qbo_client_id],
[AccountingIntegrationApp.SAGE_INTACCT]: [`${environment.fyle_app_url}/sage-intacct`, environment.si_client_id],
[AccountingIntegrationApp.XERO]: [`${environment.fyle_app_url}/xero`, environment.xero_client_id]
Expand Down

0 comments on commit 79d3545

Please sign in to comment.