Fix: Incidents Page Detail
This commit is contained in:
1 parent
5a0078cf92
commit
227e0128f9
2 files changed
+20
-17
No files matched your search
@@ -45,15 +45,26 @@ const IncidentDetailsModal = ({ open, incidentId, onClose, onResolved }) => {
|
|||||||
item
|
item
|
||||||
xs={4}
|
xs={4}
|
||||||
>
|
>
|
||||||
<Typography variant="body1">{label}</Typography>
|
<Typography
|
||||||
|
variant="body1"
|
||||||
|
sx={{ whiteSpace: "nowrap" }}
|
||||||
|
>
|
||||||
|
{label}
|
||||||
|
</Typography>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid
|
<Grid
|
||||||
item
|
item
|
||||||
xs
|
xs
|
||||||
|
sx={{ minWidth: 0 }}
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography
|
||||||
variant="body1"
|
variant="body1"
|
||||||
textAlign="right"
|
textAlign="right"
|
||||||
|
sx={{
|
||||||
|
overflow: "hidden",
|
||||||
|
textOverflow: "ellipsis",
|
||||||
|
whiteSpace: "nowrap",
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{value ?? "-"}
|
{value ?? "-"}
|
||||||
</Typography>
|
</Typography>
|
||||||
@@ -171,7 +182,7 @@ const IncidentDetailsModal = ({ open, incidentId, onClose, onResolved }) => {
|
|||||||
fontWeight={500}
|
fontWeight={500}
|
||||||
sx={{ minWidth: 70 }}
|
sx={{ minWidth: 70 }}
|
||||||
>
|
>
|
||||||
{t("incidentsPage.incidentItemMonitor")}:
|
{t("incidentsPage.incidentItemMonitor")}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography
|
<Typography
|
||||||
variant="body1"
|
variant="body1"
|
||||||
@@ -190,7 +201,7 @@ const IncidentDetailsModal = ({ open, incidentId, onClose, onResolved }) => {
|
|||||||
fontWeight={500}
|
fontWeight={500}
|
||||||
sx={{ minWidth: 70 }}
|
sx={{ minWidth: 70 }}
|
||||||
>
|
>
|
||||||
{t("incidentsPage.URL")}:
|
{t("incidentsPage.URL")}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography
|
<Typography
|
||||||
variant="body1"
|
variant="body1"
|
||||||
@@ -295,22 +306,13 @@ const IncidentDetailsModal = ({ open, incidentId, onClose, onResolved }) => {
|
|||||||
value={incident?.statusCode ?? "-"}
|
value={incident?.statusCode ?? "-"}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Typography
|
<KeyValueRow
|
||||||
variant="body2"
|
label={t("incidentsPage.message")}
|
||||||
sx={{
|
value={incident?.message ?? "-"}
|
||||||
fontFamily: "monospace",
|
/>
|
||||||
|
|
||||||
wordBreak: "break-word",
|
|
||||||
lineHeight: 1.6,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{incident?.message || "-"}
|
|
||||||
</Typography>
|
|
||||||
|
|
||||||
{!isActive && (
|
{!isActive && (
|
||||||
<>
|
<>
|
||||||
<Divider sx={{ mb: theme.spacing(2) }} />
|
|
||||||
|
|
||||||
<KeyValueRow
|
<KeyValueRow
|
||||||
label={t("incidentsPage.resolutionMethod")}
|
label={t("incidentsPage.resolutionMethod")}
|
||||||
value={toCapitalLetter(incident?.resolutionType) || "-"}
|
value={toCapitalLetter(incident?.resolutionType) || "-"}
|
||||||
|
|||||||
@@ -1236,6 +1236,7 @@
|
|||||||
"comment": "Comment",
|
"comment": "Comment",
|
||||||
"noCommentProvided": "No comment provided",
|
"noCommentProvided": "No comment provided",
|
||||||
"loadingIncidentDetails": "Loading incident details...",
|
"loadingIncidentDetails": "Loading incident details...",
|
||||||
"none": "None"
|
"none": "None",
|
||||||
|
"message": "Message"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user