mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-17 21:38:12 +00:00
Refactor comment UI code
And run prettier
This commit is contained in:
1 parent
6d956ac13b
commit
5c1e09cc48
7 files changed
+85
-75
No files matched your search
+3
-3
@@ -7,14 +7,14 @@ import { Observable } from 'rxjs'
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class DocumentCommentService extends AbstractPaperlessService<PaperlessDocumentComment> {
|
||||
export class DocumentCommentsService extends AbstractPaperlessService<PaperlessDocumentComment> {
|
||||
constructor(http: HttpClient) {
|
||||
super(http, 'documents')
|
||||
}
|
||||
|
||||
getComments(id: number): Observable<PaperlessDocumentComment[]> {
|
||||
getComments(documentId: number): Observable<PaperlessDocumentComment[]> {
|
||||
return this.http.get<PaperlessDocumentComment[]>(
|
||||
this.getResourceUrl(id, 'comments')
|
||||
this.getResourceUrl(documentId, 'comments')
|
||||
)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user