web: display username in audit events
This commit is contained in:
parent
123b0c9a81
commit
6cc6da4879
@ -86,16 +86,16 @@ export default function MapfixInfoPage() {
|
||||
}, [mapfixId])
|
||||
|
||||
const comments:Comment[] = auditEvents.map((auditEvent) => {
|
||||
let user = auditEvent.User.toString();
|
||||
let username = auditEvent.Username;
|
||||
if (auditEvent.User == 9223372036854776000) {
|
||||
user = "[Validator]";
|
||||
username = "[Validator]";
|
||||
}
|
||||
if (mapfix && auditEvent.User == mapfix.Submitter) {
|
||||
user = "[Submitter]";
|
||||
if (username === "" && mapfix && auditEvent.User == mapfix.Submitter) {
|
||||
username = "[Submitter]";
|
||||
}
|
||||
return {
|
||||
date: auditEvent.CreatedAt,
|
||||
name: user,
|
||||
name: username,
|
||||
comment: auditEventMessage(auditEvent),
|
||||
}
|
||||
})
|
||||
|
@ -77,16 +77,16 @@ export default function SubmissionInfoPage() {
|
||||
}, [submissionId])
|
||||
|
||||
const comments:Comment[] = auditEvents.map((auditEvent) => {
|
||||
let user = auditEvent.User.toString();
|
||||
let username = auditEvent.Username;
|
||||
if (auditEvent.User == 9223372036854776000) {
|
||||
user = "[Validator]";
|
||||
username = "[Validator]";
|
||||
}
|
||||
if (submission && auditEvent.User == submission.Submitter) {
|
||||
user = "[Submitter]";
|
||||
if (username === "" && submission && auditEvent.User == submission.Submitter) {
|
||||
username = "[Submitter]";
|
||||
}
|
||||
return {
|
||||
date: auditEvent.CreatedAt,
|
||||
name: user,
|
||||
name: username,
|
||||
comment: auditEventMessage(auditEvent),
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user