@@ -19,7 +19,7 @@ export default function AcknowledgesList(props: AcknowledgesListProps) {
|
||||
<div className="problem-ack-col problem-ack-user">
|
||||
{acknowledges.map((ack) => (
|
||||
<span key={ack.acknowledgeid} className="problem-ack-user">
|
||||
{ack.user}
|
||||
{formatUserName(ack)}
|
||||
</span>
|
||||
))}
|
||||
</div>
|
||||
@@ -33,3 +33,11 @@ export default function AcknowledgesList(props: AcknowledgesListProps) {
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
function formatUserName(ack: ZBXAcknowledge): string {
|
||||
if (!ack.name && !ack.surname) {
|
||||
return ack.user;
|
||||
} else {
|
||||
return `${ack.name} ${ack.surname}`.trim();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user