mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 17:47:08 +01:00
Merge frontend user model
This commit is contained in:
parent
fdaf9e9b46
commit
10f36870e6
6 changed files with 16 additions and 23 deletions
|
|
@ -92,8 +92,8 @@ export class DocumentCommentsComponent extends ComponentWithPermissions {
|
|||
displayName(comment: PaperlessDocumentComment): string {
|
||||
if (!comment.user) return ''
|
||||
let nameComponents = []
|
||||
if (comment.user.firstname) nameComponents.unshift(comment.user.firstname)
|
||||
if (comment.user.lastname) nameComponents.unshift(comment.user.lastname)
|
||||
if (comment.user.first_name) nameComponents.unshift(comment.user.first_name)
|
||||
if (comment.user.last_name) nameComponents.unshift(comment.user.last_name)
|
||||
if (comment.user.username) {
|
||||
if (nameComponents.length > 0)
|
||||
nameComponents.push(`(${comment.user.username})`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue