Skip to content

Commit

Permalink
Merge pull request #363 from FaizanMohammed326/dev
Browse files Browse the repository at this point in the history
dashboard metrics issue resolved
  • Loading branch information
htvenkatesh authored Sep 15, 2023
2 parents e4dc6bd + 2ffca9f commit afc400f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/app/views/dashboard/dashboard.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,16 @@ export class DashboardComponent implements OnInit {
menuToDisplay.navigationURL = menuData[i].navigationUrl;
menuToDisplay.icon = menuData[i].imageUrl;
menuToDisplay.tooltip = menuData[i].tooltip;
let results: any = this.getDashboardMetrics(configFiles[menuData[i].programID], this.rbacDetails)
let results: any = await this.getDashboardMetrics(configFiles[menuData[i].programID], this.rbacDetails)
promises.push(results)
menuToDisplay.metrics = results
this.dashboardMenu.push(menuToDisplay);
}
}
Promise.allSettled(promises).then(() => {
this.spinner.hide();
})
// Promise.allSettled(promises).then(() => {
// this.spinner.hide();
// })
this.spinner.hide();
}

getDashboardMetrics(programConfig: any, rbacDetails: any) {
Expand Down

0 comments on commit afc400f

Please sign in to comment.