Fix: Incident Detail UI Layout
This commit is contained in:
1 parent
3520e5adf4
commit
7441169a0e
1 file changed
+20
-15
@@ -318,21 +318,14 @@ const IncidentDetailsModal = ({ open, incidentId, onClose, onResolved }) => {
|
|||||||
value={toCapitalLetter(incident?.resolutionType) || "-"}
|
value={toCapitalLetter(incident?.resolutionType) || "-"}
|
||||||
/>
|
/>
|
||||||
{incident?.resolutionType === "manual" && (
|
{incident?.resolutionType === "manual" && (
|
||||||
<>
|
<KeyValueRow
|
||||||
<KeyValueRow
|
label={t("incidentsPage.comment")}
|
||||||
label={t("incidentsPage.resolvedBy")}
|
value={
|
||||||
value={incident?.resolvedBy?.email || "Unknown"}
|
incident?.comment?.trim()
|
||||||
/>
|
? incident.comment
|
||||||
|
: t("incidentsPage.noCommentProvided")
|
||||||
<KeyValueRow
|
}
|
||||||
label={t("incidentsPage.comment")}
|
/>
|
||||||
value={
|
|
||||||
incident?.comment?.trim()
|
|
||||||
? incident.comment
|
|
||||||
: t("incidentsPage.noCommentProvided")
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
</>
|
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
@@ -359,6 +352,18 @@ const IncidentDetailsModal = ({ open, incidentId, onClose, onResolved }) => {
|
|||||||
sx={{ maxHeight: "70vh", overflowY: "auto", pr: 1 }}
|
sx={{ maxHeight: "70vh", overflowY: "auto", pr: 1 }}
|
||||||
>
|
>
|
||||||
{renderContent()}
|
{renderContent()}
|
||||||
|
{!isActive &&
|
||||||
|
incident?.resolutionType === "manual" &&
|
||||||
|
incident?.resolvedBy?.email && (
|
||||||
|
<Typography
|
||||||
|
variant="body2"
|
||||||
|
sx={{
|
||||||
|
fontStyle: "italic",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{t("incidentsPage.resolvedBy")}: {incident.resolvedBy.email}
|
||||||
|
</Typography>
|
||||||
|
)}
|
||||||
<Stack
|
<Stack
|
||||||
direction="row"
|
direction="row"
|
||||||
justifyContent="flex-end"
|
justifyContent="flex-end"
|
||||||
|
|||||||
Reference in new issue
Block a user