From 8db6786515b20b43b227c33f7fbbabd9a0f8edae Mon Sep 17 00:00:00 2001 From: enadhilal Date: Sun, 20 Jun 2021 14:24:26 +0300 Subject: [PATCH] fixing desing in profile page --- .../my-request/my-request.component.ts | 4 ++-- Mohem/src/app/profile/home/home.component.html | 2 +- Mohem/src/app/profile/home/home.component.scss | 16 ++++++++-------- Mohem/src/app/profile/home/home.component.ts | 18 +++++++++++------- .../src/app/profile/service/profile.service.ts | 1 - 5 files changed, 22 insertions(+), 19 deletions(-) diff --git a/Mohem/src/app/mowadhafi/my-request/my-request.component.ts b/Mohem/src/app/mowadhafi/my-request/my-request.component.ts index 05549566..a2e9d582 100644 --- a/Mohem/src/app/mowadhafi/my-request/my-request.component.ts +++ b/Mohem/src/app/mowadhafi/my-request/my-request.component.ts @@ -42,12 +42,12 @@ public direction : String; public openHRRequestPage() { this.cs.openHRRequestPage(); - this.menu.toggle(); + // this.menu.toggle(); } public openRequestDetailsPage() { this.cs.openRequestDetailsPage(); - this.menu.toggle(); + // this.menu.toggle(); } diff --git a/Mohem/src/app/profile/home/home.component.html b/Mohem/src/app/profile/home/home.component.html index 52e8150b..2858a050 100644 --- a/Mohem/src/app/profile/home/home.component.html +++ b/Mohem/src/app/profile/home/home.component.html @@ -13,7 +13,7 @@ alt="Team Member Image" />
-
diff --git a/Mohem/src/app/profile/home/home.component.scss b/Mohem/src/app/profile/home/home.component.scss index f5991ca4..9a5f8f61 100644 --- a/Mohem/src/app/profile/home/home.component.scss +++ b/Mohem/src/app/profile/home/home.component.scss @@ -123,11 +123,11 @@ ion-thumbnail.menu-thumb { color: white; } .service-ar { - font-size: 28px; + font-size: 20px; color: white; // letter-spacing: 1px; font-weight: bold; - margin-right: 26px; + margin-right: 10px; } .services-ar { font-size: 20px; @@ -194,12 +194,12 @@ ion-thumbnail.menu-thumb { } .service-row-en { - width: 79%; - margin: -12px 0px 0px 35px; + width: 85%; + margin: -12px 0px 0px 25px; } .service-row-ar { - width: 95%; - margin: -12px 0px 35px 0px; + width: 108%; + margin: -12px 0px 0px 0px; } ion-content { @@ -975,7 +975,7 @@ $actionBtnSize: 36px; .text-years { text-align: center; - width: 58px; + width: 20px; } .grid-card { @@ -1041,7 +1041,7 @@ $actionBtnSize: 36px; } .card-size-info-en{ - width: 90%; + width: 88%; left: 2%; } diff --git a/Mohem/src/app/profile/home/home.component.ts b/Mohem/src/app/profile/home/home.component.ts index 805a3499..4fe47171 100644 --- a/Mohem/src/app/profile/home/home.component.ts +++ b/Mohem/src/app/profile/home/home.component.ts @@ -130,8 +130,8 @@ export class HomeComponent implements OnInit { } } - selectedSegment(segmentData){ - switch (segmentData){ + selectedSegment(segmentData) { + switch (segmentData) { case "personal": this.personalInfoSegment = true; this.basicDetailsSegment = false; @@ -156,8 +156,8 @@ export class HomeComponent implements OnInit { } } - allowEdit(allowVal){ - switch(allowVal){ + allowEdit(allowVal) { + switch (allowVal) { case 1: this.editBasic = true; break; @@ -167,15 +167,15 @@ export class HomeComponent implements OnInit { } } - disableEdit(disableVal){ - switch(disableVal){ + disableEdit(disableVal) { + switch (disableVal) { case 1: this.editBasic = false; break; case 2: this.editAddress = false; break; - } + } } @@ -187,5 +187,9 @@ export class HomeComponent implements OnInit { }); return await modal.present(); } + + updateImageProfile() { + this.cs.openChangeImagePage(); + } } diff --git a/Mohem/src/app/profile/service/profile.service.ts b/Mohem/src/app/profile/service/profile.service.ts index ce94bf0a..f612e132 100644 --- a/Mohem/src/app/profile/service/profile.service.ts +++ b/Mohem/src/app/profile/service/profile.service.ts @@ -14,7 +14,6 @@ export class ProfileService { public updateImageProfile( updateImgRequest: any,onError?: any,errorLabel?: string ): Observable { - console.log("services"); const request = updateImgRequest; this.authService.authenticateRequest(request); return this.api.post(