diff --git a/src/app/cashier/transaction-entry/transaction-entry.component.ts b/src/app/cashier/transaction-entry/transaction-entry.component.ts index f20434ee7..4195071e1 100644 --- a/src/app/cashier/transaction-entry/transaction-entry.component.ts +++ b/src/app/cashier/transaction-entry/transaction-entry.component.ts @@ -8,6 +8,7 @@ import { Component, OnInit, OnDestroy, inject, Input } from '@angular/core'; import { CommonModule } from '@angular/common'; +import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser'; import { FormsModule } from '@angular/forms'; import { HttpClient, HttpParams } from '@angular/common/http'; import { catchError, debounceTime, distinctUntilChanged } from 'rxjs/operators'; @@ -439,7 +440,7 @@ export class JointHolderDialogComponent implements OnInit { [style.cursor]="dragging ? 'grabbing' : zoom > 1 ? 'grab' : 'zoom-in'" > >(MatDialogRef); data = inject<{ url: string; title: string }>(MAT_DIALOG_DATA); + private sanitizer = inject(DomSanitizer); + + get safeUrl(): SafeResourceUrl { + return this.sanitizer.bypassSecurityTrustResourceUrl(this.data.url); + } zoom = 1; tx = 0; diff --git a/src/app/core/shell/shell.component.html b/src/app/core/shell/shell.component.html index 2a331ead8..9a38e1bcd 100644 --- a/src/app/core/shell/shell.component.html +++ b/src/app/core/shell/shell.component.html @@ -57,10 +57,16 @@ - + @if (hideShellLayout && !isWithdrawalReviewUrl) { + + @if (currentUrl.includes('/election')) { + + } - @if (currentUrl.includes('/clerk/')) { + @else if (currentUrl.includes('/clerk/')) {