mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Updates some Python dependencies and the hooks
This commit is contained in:
@@ -2,7 +2,7 @@ import { ObjectWithId } from 'src/app/data/object-with-id'
|
||||
import { AbstractPaperlessService } from './abstract-paperless-service'
|
||||
|
||||
export abstract class AbstractNameFilterService<
|
||||
T extends ObjectWithId
|
||||
T extends ObjectWithId,
|
||||
> extends AbstractPaperlessService<T> {
|
||||
listFiltered(
|
||||
page?: number,
|
||||
|
@@ -8,7 +8,10 @@ import { environment } from 'src/environments/environment'
|
||||
export abstract class AbstractPaperlessService<T extends ObjectWithId> {
|
||||
protected baseUrl: string = environment.apiBaseUrl
|
||||
|
||||
constructor(protected http: HttpClient, private resourceName: string) {}
|
||||
constructor(
|
||||
protected http: HttpClient,
|
||||
private resourceName: string
|
||||
) {}
|
||||
|
||||
protected getResourceUrl(id: number = null, action: string = null): string {
|
||||
let url = `${this.baseUrl}${this.resourceName}/`
|
||||
|
@@ -9,7 +9,10 @@ import { AbstractNameFilterService } from './abstract-name-filter-service'
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class GroupService extends AbstractNameFilterService<PaperlessGroup> {
|
||||
constructor(http: HttpClient, private permissionService: PermissionsService) {
|
||||
constructor(
|
||||
http: HttpClient,
|
||||
private permissionService: PermissionsService
|
||||
) {
|
||||
super(http, 'groups')
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,10 @@ import { AbstractNameFilterService } from './abstract-name-filter-service'
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class UserService extends AbstractNameFilterService<PaperlessUser> {
|
||||
constructor(http: HttpClient, private permissionService: PermissionsService) {
|
||||
constructor(
|
||||
http: HttpClient,
|
||||
private permissionService: PermissionsService
|
||||
) {
|
||||
super(http, 'users')
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user