Skip to content

Commit

Permalink
Changes in json file
Browse files Browse the repository at this point in the history
  • Loading branch information
likhithThammegowda committed Jun 24, 2024
1 parent 416c2cb commit c65f5f8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/app/routes/mobile-dashboard/mobile-dashboard.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,12 @@ export class MobileDashboardComponent implements OnInit {

})
let url: string

if (environment.production) {
url = "mobile-home.json" // For production environment
} else {
url = "mobile-home-stage.json" // For non-production (development) environment
}

url = 'mobile-home.json'
this.http.get(`assets/configurations/` + url).pipe(
switchMap((configData: any) => {
const identifiers = [
Expand Down Expand Up @@ -196,6 +195,7 @@ export class MobileDashboardComponent implements OnInit {
} else {
url = "mobile-home-stage.json" // For non-production (development) environment
}
url = 'mobile-home.json'


this.http.get(`assets/configurations/` + url).pipe(
Expand Down Expand Up @@ -352,12 +352,13 @@ export class MobileDashboardComponent implements OnInit {
}
mobileJsonData() {
let url: string

if (environment.production) {
url = "mobile-home.json" // For production environment
} else {
url = "mobile-home-stage.json" // For non-production (development) environment
}
url = 'mobile-home.json'

this.http.get(`assets/configurations/` + url).pipe(delay(500)).subscribe((res: any) => {
this.homeFeature = res.userLoggedInSection
this.topCertifiedCourseIdentifier = res.topCertifiedCourseIdentifier
Expand Down
1 change: 1 addition & 0 deletions src/app/routes/mobile-page/mobile-page.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export class MobilePageComponent implements OnInit {
} else {
url = "mobile-home-stage.json" // For non-production (development) environment
}
url = 'mobile-home.json'


this.http.get(`assets/configurations/` + url).pipe(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ <h2 i18n>No Certificates</h2>
</div>
<div *ngIf="!isCommonChatEnabled">
<img src="/fusion-assets/images/cross.svg" class="cross-icon" alt="cross image" (click)="backToChatIcon()" />
<a href="https://wa.me/919632013414?text=Hi" target="_blank">
<a rel="noopener" href="https://wa.me/919632013414?text=Hi" target="_blank">
<img src="/fusion-assets/images/whatsapp-icon.svg" class="whatsapp-icon" alt="whatsapp image" />
<div>
<p class="whtsapp-text" i18n>Chat with us on WhatsApp</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ export class WebPublicComponent implements OnInit {
}

private fetchEnvironmentConfigurations() {
const url = environment.production ? 'mobile-home.json' : 'mobile-home-stage.json'


// const url = environment.production ? 'mobile-home.json' : 'mobile-home-stage.json'
const url = 'mobile-home.json'

this.http.get(`assets/configurations/${url}`).pipe(
switchMap((configData: any) => {
const identifiers = [
Expand Down

0 comments on commit c65f5f8

Please sign in to comment.