Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
cfd0156
Merge pull request #179 from ELEVATE-Project/release-2.4.0
kiranharidas187 Jun 27, 2023
2fe0b9e
story : 899
Jun 28, 2023
381a0b1
Merge pull request #180 from rahulramakrishnan3/release-2.4.1
kiranharidas187 Jul 3, 2023
50333b3
bug fixes : 799, 798, 796
Jul 4, 2023
097d6ee
bug fixes : 797
Jul 4, 2023
c47b05e
bug fixes 800 and 801
Jul 6, 2023
7f361b3
BUG: 800, 803,804,806 fixes
Jul 10, 2023
44858e9
BUG-807: Loader issue in login page
Cafnanc Jul 10, 2023
c306922
Merge pull request #182 from Cafnanc/release-2.4.1
kiranharidas187 Jul 10, 2023
7f1b60e
Merge remote-tracking branch 'upstream/release-2.4.1' into release-2.4.1
Jul 10, 2023
f622d8a
comments
Jul 10, 2023
fb97cad
Merge pull request #181 from rahulramakrishnan3/release-2.4.1
kiranharidas187 Jul 11, 2023
c2c2563
BUG: 808
Jul 11, 2023
33879da
Merge pull request #183 from rahulramakrishnan3/release-2.4.1
kiranharidas187 Jul 12, 2023
c119e78
BUG: 814 fixes
Jul 12, 2023
9ef46c1
Merge pull request #184 from rahulramakrishnan3/release-2.4.1
kiranharidas187 Jul 12, 2023
58a5c29
BUG: 819, 820 fixes
Jul 12, 2023
fa32bb5
bug: 816 fix
Jul 13, 2023
2c8234a
814 bug reopned issue
Jul 13, 2023
ca58a40
814 , 817 , 816 fixes
Jul 13, 2023
d363b86
bug fix 817
Jul 14, 2023
f78c174
bug fixes 827
Jul 14, 2023
fe96799
BUG 829 fixes
Jul 16, 2023
a4b9d99
BUG fix 830
Jul 19, 2023
701b16d
827 bug fix
Jul 20, 2023
b9dc31b
bug fixes : 831 and 833
Jul 21, 2023
3e8b1af
bug fixes 833
Jul 21, 2023
4088ed5
BUG: 834
Jul 24, 2023
0071339
Merge pull request #186 from rahulramakrishnan3/release-2.4.1
kiranharidas187 Jul 24, 2023
b267187
burger-menu swipe gesture
Aug 1, 2023
b23373d
bug 858, 862 fixes
Aug 3, 2023
31e61e9
Merge branch 'release-2.4.1' of https://github.com/ELEVATE-Project/me…
Aug 3, 2023
21627ea
experience field validation: Only numbers
Cafnanc Aug 3, 2023
3a36507
Merge pull request #189 from Cafnanc/release-2.4.1
kiranharidas187 Aug 3, 2023
4970c33
bug 861 fix
Aug 3, 2023
cac60d1
Merge branch 'release-2.4.1' of https://github.com/ELEVATE-Project/me…
Aug 3, 2023
bcc1de2
Merge pull request #188 from rahulramakrishnan3/release-2.4.1
kiranharidas187 Aug 3, 2023
4eaff90
bug 862 fixes
Aug 3, 2023
f778c88
Merge remote-tracking branch 'upstream/release-2.4.1' into release-2.4.1
Aug 3, 2023
33032f8
Merge pull request #191 from rahulramakrishnan3/release-2.4.1
kiranharidas187 Aug 3, 2023
89280ab
bug fixes 870, 865
Aug 7, 2023
46baccf
Merge branch 'release-2.4.1' of https://github.com/ELEVATE-Project/me…
Aug 7, 2023
2eb4d29
Merge pull request #192 from rahulramakrishnan3/release-2.4.1
kiranharidas187 Aug 7, 2023
c62ed57
bug fix 864
Aug 8, 2023
ebb5210
Merge pull request #194 from rahulramakrishnan3/release-2.4.1
kiranharidas187 Aug 8, 2023
aa2fbe6
bug fix 877
Aug 18, 2023
c39acda
bug 876 fixed
Aug 18, 2023
a72c1ca
Merge pull request #195 from rahulramakrishnan3/release-2.4.1
kiranharidas187 Aug 18, 2023
7445a36
unenroll button fixes
Aug 22, 2023
68a9aaa
Merge pull request #198 from rahulramakrishnan3/release-2.4.1
kiranharidas187 Aug 22, 2023
42b2135
bug fix 882
Aug 23, 2023
cee88c2
bug 884 fix
Aug 24, 2023
197d774
function name change
Aug 24, 2023
e135a75
Merge pull request #199 from rahulramakrishnan3/release-2.4.1
kiranharidas187 Aug 24, 2023
c039ca5
story : 1007 Text changes in the pop-ups
Aug 24, 2023
9b4531d
Merge pull request #200 from rahulramakrishnan3/release-2.4.1
kiranharidas187 Aug 24, 2023
6e50180
bug fix for story 1007
Aug 25, 2023
dfb77bf
Merge pull request #201 from rahulramakrishnan3/release-2.4.1
kiranharidas187 Aug 25, 2023
398a6f1
loader issue
Cafnanc Aug 31, 2023
e59e914
bug fix 905
Sep 13, 2023
9efe68d
bug fix 906
Sep 13, 2023
c967965
bug fix 905, 906 edit session blank screen
Sep 14, 2023
20c2aee
bug fix
Sep 14, 2023
4918d5b
bug 906 fix
Sep 15, 2023
756a14b
Merge pull request #202 from rahulramakrishnan3/release-2.4.1
kiranharidas187 Sep 15, 2023
4e61ba9
Merge remote-tracking branch 'upstream/release-2.4.1' into release-2.4.1
Cafnanc Oct 4, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<ion-app>
<ion-split-pane contentId="main-content">
<ion-menu contentId="main-content" type="overlay">
<ion-menu contentId="main-content" type="overlay" swipeGesture="false">
<ion-header [translucent]="true" class="ion-no-border">
<div class="sub-menu-toolbar">
<div slot="start" class="img-mainDiv">
Expand Down
4 changes: 2 additions & 2 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ export class AppComponent {
{
text: texts['CANCEL'],
role: 'cancel',
cssClass: "alert-button",
cssClass: "alert-button-bg-white",
handler: () => { }
},
{
text: texts['CONFIRM'],
role: 'confirm',
cssClass: "alert-button-bg-white",
cssClass: "alert-button",
handler: () => {
navigator['app'].exitApp();
}
Expand Down
6 changes: 3 additions & 3 deletions src/app/core/constants/formConstant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export const PLATFORMS: IFORM = {
}

export const HELP: IFORM = {
"type": "help",
"subType": "helpForm",
"action": "helpFields",
"type": "helpApp",
"subType": "helpAppForm",
"action": "helpAppFields",
"templateName":"defaultTemplate"
}
8 changes: 8 additions & 0 deletions src/app/core/services/attachment/attachment.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,15 @@ export class AttachmentService {
let data ={
type:'removeCurrentPhoto'
}
this.translate
.get([
"REMOVE_CURRENT_PHOTO"
])
.subscribe((data) => {
this.texts = data;
});
this.actionSheetController.dismiss(data);
this.presentToast(this.texts["REMOVE_CURRENT_PHOTO"], "success");
}
async selectImage(type) {
this.translate
Expand Down
7 changes: 3 additions & 4 deletions src/app/core/services/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { TranslateService } from '@ngx-translate/core';
})
export class AuthService {
baseUrl: any;
user: any;
constructor(
private localStorage: LocalStorageService,
private httpService: HttpService,
Expand Down Expand Up @@ -67,7 +68,8 @@ export class AuthService {
if (!result.access_token) { throw Error(); };
this.userService.token = result;
await this.localStorage.setLocalData(localKeys.TOKEN, result);
const userData = await this.profileService.getProfileDetailsAPI();
this.user = data.result.user;
const userData = await this.profileService.getProfileDetailsFromAPI(this.user.isAMentor,this.user._id);
if (!userData) {
this.localStorage.delete(localKeys.TOKEN);
throw Error();
Expand All @@ -82,7 +84,6 @@ export class AuthService {
}

async logoutAccount(skipApiCall?: boolean) {
await this.loaderService.startLoader();
const config = {
url: urlConstants.API_URLS.LOGOUT_ACCOUNT,
payload: {
Expand All @@ -97,13 +98,11 @@ export class AuthService {
this.localStorage.delete(localKeys.TOKEN);
this.userService.token = null;
this.userService.userEvent.next(null);
await this.loaderService.stopLoader();
this.router.navigate([`/${CommonRoutes.AUTH}/${CommonRoutes.LOGIN}`], {
replaceUrl: true
});
}
catch (error) {
await this.loaderService.stopLoader();
}
}

Expand Down
7 changes: 6 additions & 1 deletion src/app/core/services/http/http.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,12 @@ export class HttpService {
break
case 401:
let auth = this.injector.get(AuthService);
auth.logoutAccount(true);
this.localStorage.getLocalData(localKeys.USER_DETAILS).then(async (data)=>{
if(data._id){
await auth.logoutAccount(true);
this.toastService.showToast(msg ? msg.message : 'SOMETHING_WENT_WRONG', 'danger')
}
})
break
default:
this.toastService.showToast(msg ? msg.message : 'SOMETHING_WENT_WRONG', 'danger')
Expand Down
5 changes: 3 additions & 2 deletions src/app/core/services/profile/profile.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ export class ProfileService {
let userDetails = await this.localStorage.getLocalData(localKeys.USER_DETAILS);
userDetails.user = null;
let profileData = await this.getProfileDetailsAPI();
await this.localStorage.setLocalData(localKeys.USER_DETAILS, profileData);
this.userService.userEvent.next(profileData);
let profileDatas = await {...userDetails, ...profileData};
await this.localStorage.setLocalData(localKeys.USER_DETAILS, profileDatas);
this.userService.userEvent.next(profileDatas);
this.loaderService.stopLoader();
this._location.back();
(showToast)?this.toast.showToast(data.message, "success"):null;
Expand Down
23 changes: 12 additions & 11 deletions src/app/core/services/util/util.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,21 @@ export class UtilService {
header: texts[msg.header],
message: texts[msg.message],
buttons: [
{
text: texts[msg.submit],
cssClass: 'alert-button-bg-white',
handler: () => {
resolve(true);
}
},
{
text: texts[msg.cancel],
role: 'cancel',
cssClass: 'alert-button-bg-white',
cssClass: 'alert-button-red',
handler: (blah) => {
resolve(false);
}
}, {
text: texts[msg.submit],
cssClass: 'alert-button-red',
handler: () => {
resolve(true);
}
}
},
]
});
await alert.present();
Expand All @@ -76,7 +77,7 @@ export class UtilService {
this.translate
.get([
"ADD_PHOTO",
"REMOVE_CURRENT_PHOTO",
"REMOVE_CURRENT_PHOTO_LABEL",
"CHOOSE_FROM_LIBRARY",
"TAKE_PHOTO",
"CANCEL",
Expand All @@ -92,7 +93,7 @@ export class UtilService {
case 'profile':
buttons = [
{
text: texts["REMOVE_CURRENT_PHOTO"],
text: texts["REMOVE_CURRENT_PHOTO_LABEL"],
type: 'remove',
action: 'remove'
},
Expand All @@ -106,7 +107,7 @@ export class UtilService {
case 'session':
buttons = [
{
text: texts["REMOVE_CURRENT_PHOTO"],
text: texts["REMOVE_CURRENT_PHOTO_LABEL"],
type: 'remove',
action: 'remove'
},
Expand Down
1 change: 0 additions & 1 deletion src/app/pages/auth/login/login.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Component, OnInit, ViewChild } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { MenuController } from '@ionic/angular';
import { TranslateService } from '@ngx-translate/core';
import { localKeys } from 'src/app/core/constants/localStorage.keys';
import { AuthService, LocalStorageService } from 'src/app/core/services';
import { DynamicFormComponent, JsonFormData } from 'src/app/shared/components/dynamic-form/dynamic-form.component';
import { CommonRoutes } from 'src/global.routes';
Expand Down
93 changes: 48 additions & 45 deletions src/app/pages/create-session/create-session.page.html
Original file line number Diff line number Diff line change
@@ -1,53 +1,56 @@
<app-page-header [config]="headerConfig"></app-page-header>
<div class="height">
<ion-segment (ionChange)="segmentChanged($event)" [value]="type">
<ion-segment-button value="default" layout="icon-start">
<div class="icon-2">1</div>
<ion-label>{{ firstStepperTitle | translate}}</ion-label>
</ion-segment-button>
<ion-segment-button value="segment" [disabled]="!isSubmited" layout="icon-start">
<div class="icon-2">2</div>
<ion-label>{{"MEETING_LINK" | translate}}</ion-label>
</ion-segment-button>
</ion-segment>
<div class="height" [ngSwitch]="type">
<ion-list class="height" *ngSwitchCase="'default'">
<ion-content class="ion-padding">
<app-profile-image *ngIf="showForm" [profileImageData]='profileImageData' [uploadImage]="true" (imageUploadEvent)="imageUploadEvent($event)" (imageRemoveEvent)="imageRemoveEvent($event)"></app-profile-image>
<div *ngIf="formData && showForm">
<app-dynamic-form [jsonFormData]="formData" #form1 (formValid)="isValid($event)"> </app-dynamic-form>
</div>
</ion-content>
</ion-list>
<ion-list class="height" *ngSwitchCase="'segment'">
<ion-card>
<ion-card-header>
<ion-card-title class="ion-text-center card-title">{{"SELECT_MEETING_PLATFORM" | translate}}</ion-card-title>
</ion-card-header>
<ion-card-content>
<ion-list>
<ion-select #link class="select" [(ngModel)]="selectedLink" interface="popover" (ionChange)="clickOptions($event)" [compareWith]="compareWithFn" [value]="selectedLink">
<ion-select-option [value]="option" *ngFor="let option of meetingPlatforms">
{{ option.name }}
</ion-select-option>
</ion-select>
<ion-item lines="none">
<ion-icon class="hint-icon" name="alert-circle"></ion-icon>
<ion-label class="hint-label">{{selectedHint}}</ion-label>
</ion-item>
</ion-list>
<div *ngFor="let option of meetingPlatforms">
<app-dynamic-form *ngIf="selectedLink==option" [jsonFormData]=option.form #platformForm></app-dynamic-form>
</div>
</ion-card-content>
</ion-card>
</ion-list>
<ion-content>
<div class="height">
<ion-segment (ionChange)="segmentChanged($event)" [value]="type">
<ion-segment-button value="default" layout="icon-start">
<div class="icon-2">1</div>
<ion-label>{{ firstStepperTitle | translate}}</ion-label>
</ion-segment-button>
<ion-segment-button value="segment" [disabled]="!isSubmited" layout="icon-start">
<div class="icon-2">2</div>
<ion-label>{{"MEETING_LINK" | translate}}</ion-label>
</ion-segment-button>
</ion-segment>
<div class="height" [ngSwitch]="type">
<ion-list class="height" *ngSwitchCase="'default'">
<ion-content class="ion-padding">
<app-profile-image *ngIf="showForm" [profileImageData]='profileImageData' [uploadImage]="true" (imageUploadEvent)="imageUploadEvent($event)" (imageRemoveEvent)="imageRemoveEvent($event)"></app-profile-image>
<div *ngIf="formData && showForm">
<app-dynamic-form [jsonFormData]="formData" #form1 (formValid)="isValid($event)"> </app-dynamic-form>
</div>
</ion-content>
</ion-list>
<ion-list class="height" *ngSwitchCase="'segment'">
<ion-card class="form-content">
<ion-card-header>
<ion-card-title class="ion-text-center card-title">{{"SELECT_MEETING_PLATFORM" | translate}}</ion-card-title>
</ion-card-header>
<ion-card-content>
<ion-list>
<ion-select #link class="select" [(ngModel)]="selectedLink" interface="popover" (ionChange)="clickOptions($event)" [compareWith]="compareWithFn" [value]="selectedLink">
<ion-select-option [value]="option" *ngFor="let option of meetingPlatforms">
{{ option.name }}
</ion-select-option>
</ion-select>
<ion-item lines="none">
<ion-icon class="hint-icon" name="alert-circle"></ion-icon>
<ion-label class="hint-label">{{selectedHint}}</ion-label>
</ion-item>
</ion-list>
<div *ngFor="let option of meetingPlatforms">
<app-dynamic-form *ngIf="selectedLink==option" [jsonFormData]=option.form #platformForm></app-dynamic-form>
</div>
</ion-card-content>
</ion-card>
</ion-list>
</div>
</div>
</div>
</ion-content>

<section [ngClass]="{'btn-disabled': form1?.myForm.invalid , 'btn-valid':form1?.myForm.valid}">
<div class="ion-no-border" submitButton>
<ion-button *ngIf="type == 'default'" expand="full" (click)="onSubmit()">{{'PUBLISH_AND_ADD_LINK' | translate}}</ion-button>
<ion-button *ngIf="type == 'default' && !id" expand="full" (click)="onSubmit()">{{'PUBLISH_AND_ADD_LINK' | translate}}</ion-button>
<ion-button *ngIf="type == 'default' && id" expand="full" (click)="onSubmit()">{{'SAVE' | translate}}</ion-button>
</div>
<div class="ion-no-border segment" submitButton *ngIf="type == 'segment'">
<ion-button *ngIf="sessionDetails?.meetingInfo?.platform === 'OFF'" class="btns" size="default" fill="solid" (click)="setItLater()">{{'SET_IT_LATER' | translate}}</ion-button>
Expand Down
5 changes: 5 additions & 0 deletions src/app/pages/create-session/create-session.page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ ion-label{
}
.btns{
width: 100%;
background: var(--white) !important;
}
.icon-2{
background: var(--ion-color-primary);
Expand All @@ -35,4 +36,8 @@ ion-label{
display: flex;
align-items: center;
justify-content: center;
}
.form-content{
max-height: 100% !important;
overflow-y: scroll !important;
}
Loading