RajalashmiNagarajan commited on
Commit ·
b1efa3a
1
Parent(s): 36dc6fe
signin-update
Browse filesFiles changed (3)
221 unmodified lines22222322422522622722822923023123223323423523623723834 unmodified lines273274275276277278279280281282283284285221 unmodified lines ...userData }));
// Ensure any auth modal/backdrop is closed before navigating try { window.dispatchEvent(new CustomEvent('auth-close')); this.close.emit(); document.body.classList.remove('modal-open'); const modal = document.querySelector('.modal'); if (modal && modal.parentElement) modal.parentElement.removeChild(modal); const backdrop = document.querySelector('.modal-backdrop'); if (backdrop && backdrop.parentElement) backdrop.parentElement.removeChild(backdrop); } catch { /* ignore */ }
this.redirectBasedOnRole(userRole); }
34 unmodified lines // ensure template updates under OnPush this.cdr.markForCheck(); }
ngOnDestroy() { // Defensive cleanup so returning to homepage never keeps a blurred overlay try { document.body.classList.remove('modal-open'); const backdrop = document.querySelector('.modal-backdrop'); if (backdrop && backdrop.parentElement) backdrop.parentElement.removeChild(backdrop); } catch { /* ignore */ } }}52 unmodified lines53545556575859124 unmodified lines18418518618618718818718818919019119252 unmodified lines <div class="form-field role-field-wrapper"> <label for="roleGroup">Role Group <span class="required-star">*</span> <span class="label-cross" *ngIf="submitted && controlHasError('roleGroup')" aria-hidden="true">✖</span> <button type="button" class="info-btn" (click)="showInfo = true" aria-label="Role info">i</button> </label> <select id="roleGroup" formControlName="roleGroup" (change)="onRoleGroupChange($any($event.target).value)" aria-label="Role group" [class.input-invalid]="submitted && controlHasError('roleGroup')"> <option value="">-- Select role group --</option>124 unmodified lines </div>
<!-- Floating Info Popup --> <div *ngIf="showInfo" class="info-popup-bg"> <div class="info-popup"> <button class="info-close" type="button" (click)="showInfo = false">×</button> <div *ngIf="showInfo" class="info-popup-bg" (click)="showInfo = false"> <div class="info-popup" (click)="$event.stopPropagation()"> <button class="info-close" type="button" (click)="showInfo = false" aria-label="Close">×</button> <div class="info-title">Role Information</div>
<div class="info-text">8 unmodified lines9101112121314158 unmodified lines
// Decide API URL based on where the app is runningconst pyDetectApiUrl = isLocal ? 'http://127.0.0.1:5000' // your local Flask ? 'http://127.0.0.1:5002' // your local Flask : 'https://pykara-Py-detect-backend.hf.space'; // Hugging Face backend
export const environment = {src/app/homepage/sign-in/sign-in.component.ts+20
src/app/homepage/sign-up/sign-up.component.html+4-3
src/environments/environment.ts+1-1