fixing bugs

enad-pre-live
enadhilal 4 years ago
parent b60fd8be8a
commit a57ed5fd01

@ -26,11 +26,10 @@ export class BusinessCardComponent implements OnInit {
ngOnInit() { ngOnInit() {
this.userInfo = JSON.parse(localStorage.getItem('bussiness-card-info')); this.userInfo = JSON.parse(localStorage.getItem('bussiness-card-info'));
this.direction = TranslatorService.getCurrentLanguageName(); this.direction = TranslatorService.getCurrentLanguageName();
console.log(this.userInfo);
this.authService this.authService
.loadAuthenticatedUser() .loadAuthenticatedUser()
.subscribe((user: AuthenticatedUser) => { .subscribe((user: AuthenticatedUser) => {
console.log(user);
if (user) { if (user) {
let jobTitle = user.POSITION_NAME.split('.'); let jobTitle = user.POSITION_NAME.split('.');
if (jobTitle && jobTitle.length > 1) { if (jobTitle && jobTitle.length > 1) {

@ -437,6 +437,7 @@ export class WorklistMainComponent implements OnInit {
result.GetAbsenceCollectionNotificationBodyList; result.GetAbsenceCollectionNotificationBodyList;
} }
} else if (Type === "ADDRESS") { } else if (Type === "ADDRESS") {
console.log(result.GetAddressNotificationBodyList)
if (result.GetAddressNotificationBodyList) { if (result.GetAddressNotificationBodyList) {
this.notificationBodyRes = this.notificationBodyRes =
result.GetAddressNotificationBodyList; result.GetAddressNotificationBodyList;

@ -71,7 +71,7 @@
</div> </div>
<div *ngIf="transactionDetails && transactionDetails.length>0" class="transaction-list"> <div *ngIf="transactionDetails && transactionDetails.length>0" class="transaction-list">
<ion-card *ngFor="let transaction of transactionDetails"> <ion-card *ngFor="let transaction of transactionDetails">
<div class="date">{{transaction.CREATION_DATE}}</div> <div [ngClass]="direction ==='en'? 'date-en':'date-ar'">{{transaction.CREATION_DATE}}</div>
<ion-label class="ion-text-wrap"> <ion-label class="ion-text-wrap">
<ion-text color="primary"> <ion-text color="primary">
<p class="display-created bold" >{{'transaction, created-for' | translate}}</p> <p class="display-created bold" >{{'transaction, created-for' | translate}}</p>

@ -17,7 +17,7 @@
.color-black{ .color-black{
color:#000; color:#000;
} }
.date{ .date-en{
position: absolute; position: absolute;
font-size: 14px; font-size: 14px;
padding: 10px; padding: 10px;
@ -26,6 +26,15 @@
color:#969696; color:#969696;
margin: -8px; margin: -8px;
} }
.date-ar{
position: absolute;
font-size: 14px;
padding: 10px;
left: 10px;
width: 100px;
color:#969696;
margin: -8px;
}
.transaction-list{ .transaction-list{
margin-top:20px; margin-top:20px;
} }

@ -199,7 +199,7 @@ ion-thumbnail.menu-thumb {
margin: -12px 0px 0px 25px; margin: -12px 0px 0px 25px;
} }
.service-row-ar { .service-row-ar {
width: 108%; width: 104%;
margin: -12px 0px 0px 0px; margin: -12px 0px 0px 0px;
} }
@ -1178,7 +1178,7 @@ $actionBtnSize: 36px;
.card-size-info-ar{ .card-size-info-ar{
width: 90%; width: 90%;
right: 5%; right: 3%;
padding-right: 0px; padding-right: 0px;
margin-left: 0px; margin-left: 0px;
} }

Loading…
Cancel
Save