1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-14 00:19:16 +01:00

fix: add environment to event log card (#2912)

## About the changes
Some changes recorded in the event log apply only to one particular
environment. This is currently not visible in the event log card, but it
is present in the recorded event:

| Full event | Event card |
| --- | --- |
| ![Screenshot from 2023-01-17
14-22-55](https://user-images.githubusercontent.com/455064/212910227-77b5e81c-60fe-4891-bfad-e3358e5a0ba5.png)
|
![image](https://user-images.githubusercontent.com/455064/212910207-7cae700b-3f50-4035-9bcd-897de62d76d2.png)
|

This PR makes that information visible on the event card
This commit is contained in:
Gastón Fournier 2023-01-18 10:19:25 +01:00 committed by GitHub
parent bf7ef62059
commit c86d191f62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,6 +113,17 @@ const EventCard = ({ entry }: IEventCardProps) => {
</>
}
/>
<ConditionallyRender
condition={Boolean(entry.environment)}
show={
<>
<StyledDefinitionTerm>
Environment:
</StyledDefinitionTerm>
<dd>{entry.environment}</dd>
</>
}
/>
</dl>
<ConditionallyRender
condition={entry.data || entry.preData}