Skip to content

Commit

Permalink
Merge pull request Sunbird-cQube#241 from FaizanMohammed326/development
Browse files Browse the repository at this point in the history
dashboard menu for vsk
  • Loading branch information
tibil-it authored Jul 25, 2022
2 parents 62b3ca5 + 6d6d6c1 commit a5d7da3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class LayoutComponent implements OnInit {
menuToDisplay.isSelected = true;
menuToDisplay.basepath = "dasboard";
this.menu.push(menuToDisplay);
menuResult.result.forEach((dasboardMenu:IDashboardMenu)=>{
menuResult?.result?.forEach((dasboardMenu:IDashboardMenu)=>{
let menuToDisplay: IMenuItem | any = {};
menuToDisplay.label = dasboardMenu.title;
menuToDisplay.path = dasboardMenu.navigationURL;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export class ConfigService {

getDashboardMetrics(forMenu = false): Observable<ResponseType<IDashboardMenu[] | any[]>> {
if (environment.config.toLowerCase() === 'vsk') {
return this._http.get<ResponseType<IDashboardMenu[]>>(`${environment.apiURL}/config/getMetrics/${environment.config.toLowerCase()}/dashboard`);
// return this._http.get<ResponseType<IDashboardMenu[]>>(`${environment.apiURL}/config/getMetrics/${environment.config.toLowerCase()}/dashboard`);
return this._http.get<ResponseType<IDashboardMenu[]>>(`${environment.apiURL}/metrics/getDashboardMetrics/${environment.config.toLowerCase()}/${forMenu}`);
} else {
return this._http.get<ResponseType<IDashboardMenu[]>>(`${environment.apiURL}/metrics/getDashboardMetrics/${environment.config.toLowerCase()}/${forMenu}`);
}
Expand Down

0 comments on commit a5d7da3

Please sign in to comment.