Skip to content

Commit

Permalink
[FE] - Hide Approve certificate button temporary (#21)
Browse files Browse the repository at this point in the history
* Approved list for vc maker

* approved list UI

* removed ununsed code

* remove map extra word

* [FE] - Hide Approve certificate button temporary
  • Loading branch information
sonaliTekdi authored Dec 2, 2024
1 parent 16f1464 commit beb1604
Showing 1 changed file with 23 additions and 26 deletions.
49 changes: 23 additions & 26 deletions src/app/issure/pdf-view/pdf-view.component.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<div class="modal fade show" id="certificateView" tabindex="-1" aria-labelledby="modalTitle" aria-hidden="true" data-bs-backdrop="static" data-bs-keyboard="false">
<div class="modal fade show" id="certificateView" tabindex="-1" aria-labelledby="modalTitle" aria-hidden="true"
data-bs-backdrop="static" data-bs-keyboard="false">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">

<!-- PDF Iframe -->
<div class="m-4">
<iframe id="iframe2" class="pdfDisplay" [src]="pdfResponse2"></iframe>
</div>

<!-- Action Buttons -->
<div class="m-4 d-flex justify-content-end align-items-center">
<!-- Cancel Button -->
Expand All @@ -15,41 +16,37 @@
</button>

<!-- Approve Certificate Button (Visible only for Inspector) -->

<button *ngIf="entityName === 'Inspector'"
class="dsn-g-btn btn btn-bg btn-style text-primary-color text-end fw-bold text-capitalize mr-3 dns-btn pt-2 f1de"
type="button" aria-expanded="false" data-bs-dismiss="modal" aria-label="Close" (click)="onApproveCertificate()">
Approve Certificate
</button>

<!-- <button *ngIf="entityName === 'Inspector'"
class="dsn-g-btn btn btn-bg btn-style text-primary-color text-end fw-bold text-capitalize mr-3 dns-btn pt-2 f1de"
type="button" aria-expanded="false" data-bs-dismiss="modal" aria-label="Close"
(click)="onApproveCertificate()">
Approve Certificate
</button> -->


<!-- Download Certificate Dropdown (Visible only for Student) -->
<div class="dropdown" *ngIf="entityName === 'Student'">
<button class="dropdown-toggle text-capitalize fw-bold dsn-g-btn btn btn-bg btn-style text-primary-color text-end mr-3 dns-btn pt-2 f1de"
type="button"
id="downloadDropdown"
data-bs-toggle="dropdown"
aria-expanded="false">
<div class="dropdown" *ngIf="entityName === 'Student'">
<button
class="dropdown-toggle text-capitalize fw-bold dsn-g-btn btn btn-bg btn-style text-primary-color text-end mr-3 dns-btn pt-2 f1de"
type="button" id="downloadDropdown" data-bs-toggle="dropdown" aria-expanded="false">
Download Certificate
</button>

<ul class="dropdown-menu" aria-labelledby="downloadDropdown">
<li>
<a class="dropdown-item"
(click)="downloadFile('PNG', item, 'certificate')">
PNG
<a class="dropdown-item" (click)="downloadFile('PNG', item, 'certificate')">
PNG
</a>
</li>
<li>
<a class="dropdown-item"
(click)="downloadFile('JPEG', item, 'certificate')">
JPEG
<a class="dropdown-item" (click)="downloadFile('JPEG', item, 'certificate')">
JPEG
</a>
</li>
<li>
<a class="dropdown-item"
(click)="downloadFile('PDF', item, 'certificate')">
PDF
<a class="dropdown-item" (click)="downloadFile('PDF', item, 'certificate')">
PDF
</a>
</li>
</ul>
Expand All @@ -59,4 +56,4 @@
</div>
</div>

<app-confirm-modal ></app-confirm-modal>
<app-confirm-modal></app-confirm-modal>

0 comments on commit beb1604

Please sign in to comment.