mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-07-09 05:25:10 +00:00
Fix doc detail view, touches settings too
This commit is contained in:
@@ -5,6 +5,7 @@ import {
|
||||
Input,
|
||||
OnInit,
|
||||
Output,
|
||||
signal,
|
||||
ViewChild,
|
||||
} from '@angular/core'
|
||||
import { ControlValueAccessor } from '@angular/forms'
|
||||
@@ -61,7 +62,15 @@ export class AbstractInputComponent<T> implements OnInit, ControlValueAccessor {
|
||||
@Output()
|
||||
removed: EventEmitter<AbstractInputComponent<any>> = new EventEmitter()
|
||||
|
||||
value: T
|
||||
private valueSignal = signal<T>(undefined)
|
||||
|
||||
get value(): T {
|
||||
return this.valueSignal()
|
||||
}
|
||||
|
||||
set value(value: T) {
|
||||
this.valueSignal.set(value)
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.inputId = uuidv4()
|
||||
|
||||
Reference in New Issue
Block a user