mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-07-09 05:25:10 +00:00
Ok first real chunk of zoneless pngx
document list dashboard / widget frame stats
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Directive, OnDestroy } from '@angular/core'
|
||||
import { Directive, OnDestroy, signal } from '@angular/core'
|
||||
import { Subject } from 'rxjs'
|
||||
import { ComponentWithPermissions } from '../with-permissions/with-permissions.component'
|
||||
|
||||
@@ -7,8 +7,24 @@ export abstract class LoadingComponentWithPermissions
|
||||
extends ComponentWithPermissions
|
||||
implements OnDestroy
|
||||
{
|
||||
public loading: boolean = true
|
||||
public show: boolean = false
|
||||
private loadingSignal = signal(true)
|
||||
private showSignal = signal(false)
|
||||
|
||||
public get loading(): boolean {
|
||||
return this.loadingSignal()
|
||||
}
|
||||
|
||||
public set loading(value: boolean) {
|
||||
this.loadingSignal.set(value)
|
||||
}
|
||||
|
||||
public get show(): boolean {
|
||||
return this.showSignal()
|
||||
}
|
||||
|
||||
public set show(value: boolean) {
|
||||
this.showSignal.set(value)
|
||||
}
|
||||
|
||||
protected unsubscribeNotifier: Subject<any> = new Subject()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user