Skip to content

Commit

Permalink
changed key names for using enum type values in track my request page
Browse files Browse the repository at this point in the history
  • Loading branch information
Madhuravas committed Sep 27, 2023
1 parent 4b04498 commit e5f205e
Showing 1 changed file with 16 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@
<!-- <td style="width:25%">{{eidStatus.info.description}}</td> -->
<td style="width:25%">{{eidStatus.eventStatus}}</td>
<td style="width:25%">{{eidStatus.timestamp}}</td>


</tr>
<tr style="padding:10px;">
<td style="width:25%"><label>{{'trackservicerequest.individualId' | translate}}</label></td>
Expand All @@ -81,50 +79,50 @@

</tr>
<!-- Download Personalized Card and Update my data -->
<tr *ngIf="eidStatus.eventType === 'Download Personalized Card' || eidStatus.eventType === 'Update UIN Data' "
<tr *ngIf="eidStatus.info.eventTypeEnum === 'DOWNLOAD_PERSONALIZED_CARD' || eidStatus.info.eventTypeEnum === 'UPDATE_MY_UIN' "
style="padding:10px; border-top: 1px solid silver;">
<td><label>{{'trackservicerequest.attributeList' | translate}} </label></td>
</tr>
<tr
*ngIf="eidStatus.eventType === 'Download Personalized Card' || eidStatus.eventType === 'Update UIN Data' ">
*ngIf="eidStatus.info.eventTypeEnum === 'DOWNLOAD_PERSONALIZED_CARD' || eidStatus.info.eventTypeEnum === 'UPDATE_MY_UIN' ">
<td>{{eidStatus.info.attributeList}}</td>
</tr>
<!-- Authentication request -->
<tr *ngIf="eidStatus.eventType === 'Authentication request' "
<!-- Authentication Request -->
<tr *ngIf="eidStatus.info.eventTypeEnum === 'AUTHENTICATION_REQUEST' "
style="padding:10px; padding:10px; border-top: 1px solid silver;">
<td><label>{{'trackservicerequest.partnerLogo' | translate}} </label></td>
<td><label>{{'trackservicerequest.partnerName' | translate}} </label></td>
</tr>
<tr *ngIf="eidStatus.eventType === 'Authentication request' ">
<tr *ngIf="eidStatus.info.eventTypeEnum === 'AUTHENTICATION_REQUEST' ">
<td><img alt="logo" style="width:130px;height: 60px;" [src]=eidStatus.info.partnerLogo /></td>
<td>{{eidStatus.info.partnerName}}</td>
</tr>
<!-- Manage my VID -->
<tr *ngIf="eidStatus.eventType === 'Generate Vid' "
<tr *ngIf="eidStatus.info.eventTypeEnum === 'GENERATE_VID' "
style="padding:10px; padding:10px; border-top: 1px solid silver;">
<td><label>{{'trackservicerequest.vidType' | translate}} </label></td>
<td><label>{{'trackservicerequest.vid' | translate}} </label></td>
</tr>
<tr *ngIf="eidStatus.eventType === 'Generate Vid' ">
<tr *ngIf="eidStatus.info.eventTypeEnum === 'GENERATE_VID' ">
<td>{{eidStatus.info.vidType}}</td>
<td>{{eidStatus.info.vid}}</td>
</tr>
<!-- Share credential with partner -->
<tr *ngIf="eidStatus.eventType === 'Share Credential With Partner' "
<tr *ngIf="eidStatus.info.eventTypeEnum === 'SHARE_CRED_WITH_PARTNER' "
style="padding:10px; padding:10px; border-top: 1px solid silver;">
<td style="width:25%"><label>{{'trackservicerequest.partnerLogo' | translate}} </label></td>
<td style="width:25%"><label>{{'trackservicerequest.partnerName' | translate}} </label></td>
<td style="width:25%"><label>{{'trackservicerequest.attributeList' | translate}} </label></td>
<td style="width:25%"><label>{{'trackservicerequest.purpose' | translate}} </label></td>
</tr>
<tr *ngIf="eidStatus.eventType === 'Share Credential With Partner' ">
<tr *ngIf="eidStatus.info.eventTypeEnum === 'SHARE_CRED_WITH_PARTNER' ">
<td style="width:25%"><img alt="logo" style="width:130px;height: 60px;" [src]=eidStatus.info.partnerLogo /></td>
<td style="width:25%">{{eidStatus.info.partnerName}}</td>
<td style="width:25%">{{eidStatus.info.attributeList}}</td>
<td style="width:25%">{{eidStatus.info.purpose}}</td>
</tr>
</table>
<div *ngIf="eidStatus.eventType === 'Generate Vid'"
<div *ngIf="eidStatus.info.eventTypeEnum === 'GENERATE_VID'"
style="display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 1rem;">
<button id="downloadVIDCardBtn" style="cursor: pointer;" class="download-btn"><img class="save-icon"
src="./assets/images/save.png" />{{'trackservicerequest.downloadVIDCard' | translate}}</button>
Expand All @@ -134,23 +132,23 @@
src="./assets/images/save.png" />{{'trackservicerequest.downloadbuttonLabel' |
translate}}</button>
</div>
<div *ngIf="eidStatus.eventType === 'Update UIN Data'"
<div *ngIf="eidStatus.info.eventTypeEnum === 'UPDATE_MY_UIN'"
style="display: flex; justify-content: space-between; width: 100%; margin-top: 1rem;">
<div>
<button mat-raised-button id="downloadCardWithNewDataBtn" [disabled]="eidStatus.info.downloadLink === 'NA' || disableDownloadVidBtn" *ngIf="eidStatus.eventStatus === 'Success'" (click)="downloadVIDCard(eidStatus.eventId)" class="download-btn"><img
<button mat-raised-button id="downloadCardWithNewDataBtn" [disabled]="eidStatus.info.downloadLink === 'NA' || disableDownloadVidBtn" *ngIf="eidStatus.info.eventStatusEnum === 'SUCCESS'" (click)="downloadVIDCard(eidStatus.eventId)" class="download-btn"><img
class="save-icon"
src="./assets/images/save.png" />{{'trackservicerequest.downloadUINCard' |
translate}}</button>
</div>
<button id="downloadAcknowledgementbtn" style="cursor: pointer;" class="download-btn"
(click)="downloadAcknowledgement()"><img class="save-icon"
(click)="downloadAcknowledgement()"><img class="save-icon"
src="./assets/images/save.png" />{{'trackservicerequest.downloadbuttonLabel' |
translate}}</button>
</div>
<div *ngIf="eidStatus.eventType === 'Download VID Card' "
<div *ngIf="eidStatus.info.eventTypeEnum === 'VID_CARD_DOWNLOAD' "
style="display: flex; justify-content: space-between; width: 100%; margin-top: 1rem;">
<div>
<button mat-raised-button [disabled]="eidStatus.info.downloadLink === 'NA' || disableDownloadVidBtn" *ngIf="eidStatus.eventStatus === 'Success'" (click)="downloadVIDCard(eidStatus.eventId)" id="downloadCardWithNewDataBtn" class="download-btn"><img
<button mat-raised-button [disabled]="eidStatus.info.downloadLink === 'NA' || disableDownloadVidBtn" *ngIf="eidStatus.info.eventStatusEnum === 'SUCCESS'" (click)="downloadVIDCard(eidStatus.eventId)" id="downloadCardWithNewDataBtn" class="download-btn"><img
class="save-icon"
src="./assets/images/save.png" />{{'trackservicerequest.downloadVIDCard' |
translate}}</button>
Expand All @@ -160,7 +158,7 @@
src="./assets/images/save.png" />{{'trackservicerequest.downloadbuttonLabel' |
translate}}</button>
</div>
<div *ngIf="eidStatus.eventType !== 'Update UIN Data' && eidStatus.eventType !== 'Generate Vid' && eidStatus.eventType !== 'Download VID Card' "
<div *ngIf="eidStatus.info.eventTypeEnum !== 'UPDATE_MY_UIN' && eidStatus.info.eventTypeEnum !== 'GENERATE_VID' && eidStatus.info.eventTypeEnum !== 'VID_CARD_DOWNLOAD' "
style="display: flex; justify-content: flex-end; width: 100%; margin-top: 1rem;">
<button id="downloadAcknowledgementbtn" style="cursor: pointer;" class="download-btn"
(click)="downloadAcknowledgement()"><img class="save-icon"
Expand Down

0 comments on commit e5f205e

Please sign in to comment.