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:
+4
-6
@@ -1,4 +1,4 @@
|
||||
import {Component, OnDestroy} from '@angular/core';
|
||||
import {Component, inject, OnDestroy} from '@angular/core';
|
||||
import {DatePipe, NgClass} from '@angular/common';
|
||||
import {BookdropFinalizeResult} from '../../service/bookdrop.service';
|
||||
import {DynamicDialogConfig, DynamicDialogRef} from "primeng/dynamicdialog";
|
||||
@@ -17,12 +17,10 @@ import {TranslocoDirective} from '@jsverse/transloco';
|
||||
styleUrl: './bookdrop-finalize-result-dialog.component.scss'
|
||||
})
|
||||
export class BookdropFinalizeResultDialogComponent implements OnDestroy {
|
||||
public ref = inject(DynamicDialogRef);
|
||||
public config = inject(DynamicDialogConfig);
|
||||
|
||||
result: BookdropFinalizeResult;
|
||||
|
||||
constructor(public ref: DynamicDialogRef, public config: DynamicDialogConfig) {
|
||||
this.result = config.data.result;
|
||||
}
|
||||
result: BookdropFinalizeResult = this.config.data.result;
|
||||
|
||||
ngOnDestroy(): void {
|
||||
this.ref?.close();
|
||||
|
||||
Reference in New Issue
Block a user