Refactor comment UI code

And run prettier
This commit is contained in:
Michael Shamoon committed 2022-08-23 19:20:08 -07:00
1 parent 6d956ac13b
commit 5c1e09cc48
7 files changed
+85 -75

No files matched your search

@@ -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')
)
}