Skip to content

Commit

Permalink
Merge pull request #442 from rahulramakrishnan3/release-2.6.1
Browse files Browse the repository at this point in the history
1296 , 1300 bug fixes
  • Loading branch information
Cafnanc committed Mar 20, 2024
2 parents fbbff28 + bc354ba commit 46eb2e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/app/core/services/profile/profile.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ export class ProfileService {
let data: any = await this.httpService.post(config);
let authService = this.injector.get(AuthService);
let userData = authService.setUserInLocal(data);
let user = await this.getProfileDetailsFromAPI();
this.userService.userEvent.next(user);
this.loaderService.stopLoader();
this.toast.showToast(data.message, "success");
return userData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class ManageSessionComponent implements OnInit {
break;

case "EDIT":
this.router.navigate([`${CommonRoutes.CREATE_SESSION}`], { queryParams: { id: this.receivedEventData.element.id }});
(this.receivedEventData?.element?.status=='Live') ? this.router.navigate([CommonRoutes.CREATE_SESSION], { queryParams: { id: this.receivedEventData.element.id , type: 'segment'} }) : this.router.navigate([CommonRoutes.CREATE_SESSION], { queryParams: { id: this.receivedEventData.element.id } });
break;
case 'DELETE':
await this.adminWorkapceService.deleteSession(this.receivedEventData.element.id)
Expand Down
6 changes: 1 addition & 5 deletions src/app/pages/session-detail/session-detail.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,7 @@ export class SessionDetailPage implements OnInit {

editSession() {
this.activeUrl = this.router.url;
if(this.activeUrl.includes('/admin/managers-session-details')){
this.router.navigate([`${CommonRoutes.ADMIN}/${CommonRoutes.MANAGERS_SESSION}`], { queryParams: { id: this.id }});
}else{
(this.sessionDatas?.status?.value=='LIVE') ? this.router.navigate([CommonRoutes.CREATE_SESSION], { queryParams: { id: this.id , type: 'segment'} }) : this.router.navigate([CommonRoutes.CREATE_SESSION], { queryParams: { id: this.id } });
}
(this.sessionDatas?.status?.value=='LIVE') ? this.router.navigate([CommonRoutes.CREATE_SESSION], { queryParams: { id: this.id , type: 'segment'} }) : this.router.navigate([CommonRoutes.CREATE_SESSION], { queryParams: { id: this.id } });
}

deleteSession() {
Expand Down

0 comments on commit 46eb2e2

Please sign in to comment.