chore(ui): clear final prefer-inject bucket

Convert the remaining feature and core constructors flagged by prefer-inject to field injection so the last Angular inject() violations are removed across upload dialogs, core services, and bookdrop flows.

Validation: just ui lint
This commit is contained in:
James Cox
2026-04-22 17:26:50 -04:00
committed by Zach Yale
parent 4f7d38a306
commit 878cfa09c8
6 changed files with 23 additions and 34 deletions
@@ -1,17 +1,14 @@
import { Injectable, ComponentRef, ApplicationRef, createComponent, EnvironmentInjector } from '@angular/core';
import {Injectable, ComponentRef, ApplicationRef, createComponent, EnvironmentInjector, inject} from '@angular/core';
import { LibraryLoadingComponent } from './library-loading/library-loading.component';
@Injectable({
providedIn: 'root'
})
export class LibraryLoadingService {
private appRef = inject(ApplicationRef);
private injector = inject(EnvironmentInjector);
private componentRef: ComponentRef<LibraryLoadingComponent> | null = null;
constructor(
private appRef: ApplicationRef,
private injector: EnvironmentInjector
) {}
showBookLoadingProgress(bookTitle: string, current: number, total: number): void {
if (this.componentRef) {
this.updateProgress(bookTitle, current, total);