fixing desing in profile page

zohaib-huawei-q2
enadhilal 5 years ago
parent 1d1c0bfb6a
commit 8db6786515

@ -42,12 +42,12 @@ public direction : String;
public openHRRequestPage() { public openHRRequestPage() {
this.cs.openHRRequestPage(); this.cs.openHRRequestPage();
this.menu.toggle(); // this.menu.toggle();
} }
public openRequestDetailsPage() { public openRequestDetailsPage() {
this.cs.openRequestDetailsPage(); this.cs.openRequestDetailsPage();
this.menu.toggle(); // this.menu.toggle();
} }

@ -13,7 +13,7 @@
alt="Team Member Image" /> alt="Team Member Image" />
</div> </div>
<div [ngClass]=" direction == 'ltr' ? 'changeImgBtn' : 'changeImgBtn-ar'"> <div [ngClass]=" direction == 'ltr' ? 'changeImgBtn' : 'changeImgBtn-ar'">
<button ion-button icon-only menuToggle class="menubutton"> <button ion-button icon-only menuToggle class="menubutton" (click)="updateImageProfile()">
<img class="changeIcon" src="../assets/imgs/edit_icon.png"> <img class="changeIcon" src="../assets/imgs/edit_icon.png">
</button> </button>
</div> </div>

@ -123,11 +123,11 @@ ion-thumbnail.menu-thumb {
color: white; color: white;
} }
.service-ar { .service-ar {
font-size: 28px; font-size: 20px;
color: white; color: white;
// letter-spacing: 1px; // letter-spacing: 1px;
font-weight: bold; font-weight: bold;
margin-right: 26px; margin-right: 10px;
} }
.services-ar { .services-ar {
font-size: 20px; font-size: 20px;
@ -194,12 +194,12 @@ ion-thumbnail.menu-thumb {
} }
.service-row-en { .service-row-en {
width: 79%; width: 85%;
margin: -12px 0px 0px 35px; margin: -12px 0px 0px 25px;
} }
.service-row-ar { .service-row-ar {
width: 95%; width: 108%;
margin: -12px 0px 35px 0px; margin: -12px 0px 0px 0px;
} }
ion-content { ion-content {
@ -975,7 +975,7 @@ $actionBtnSize: 36px;
.text-years { .text-years {
text-align: center; text-align: center;
width: 58px; width: 20px;
} }
.grid-card { .grid-card {
@ -1041,7 +1041,7 @@ $actionBtnSize: 36px;
} }
.card-size-info-en{ .card-size-info-en{
width: 90%; width: 88%;
left: 2%; left: 2%;
} }

@ -130,8 +130,8 @@ export class HomeComponent implements OnInit {
} }
} }
selectedSegment(segmentData){ selectedSegment(segmentData) {
switch (segmentData){ switch (segmentData) {
case "personal": case "personal":
this.personalInfoSegment = true; this.personalInfoSegment = true;
this.basicDetailsSegment = false; this.basicDetailsSegment = false;
@ -156,8 +156,8 @@ export class HomeComponent implements OnInit {
} }
} }
allowEdit(allowVal){ allowEdit(allowVal) {
switch(allowVal){ switch (allowVal) {
case 1: case 1:
this.editBasic = true; this.editBasic = true;
break; break;
@ -167,15 +167,15 @@ export class HomeComponent implements OnInit {
} }
} }
disableEdit(disableVal){ disableEdit(disableVal) {
switch(disableVal){ switch (disableVal) {
case 1: case 1:
this.editBasic = false; this.editBasic = false;
break; break;
case 2: case 2:
this.editAddress = false; this.editAddress = false;
break; break;
} }
} }
@ -187,5 +187,9 @@ export class HomeComponent implements OnInit {
}); });
return await modal.present(); return await modal.present();
} }
updateImageProfile() {
this.cs.openChangeImagePage();
}
} }

@ -14,7 +14,6 @@ export class ProfileService {
public updateImageProfile( updateImgRequest: any,onError?: any,errorLabel?: string public updateImageProfile( updateImgRequest: any,onError?: any,errorLabel?: string
): Observable<any> { ): Observable<any> {
console.log("services");
const request = updateImgRequest; const request = updateImgRequest;
this.authService.authenticateRequest(request); this.authService.authenticateRequest(request);
return this.api.post( return this.api.post(

Loading…
Cancel
Save