Merge branch 'develop' into fix-uptime-monitor-redirection-incident
This commit is contained in:
commit
a5112a7955
4 files changed
+32
-19
No files matched your search
+10
-1
@@ -22,9 +22,18 @@ function App() {
|
|||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
const theme = mode === "light" ? lightTheme : darkTheme;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ThemeProvider theme={mode === "light" ? lightTheme : darkTheme}>
|
<ThemeProvider theme={theme}>
|
||||||
<CssBaseline />
|
<CssBaseline />
|
||||||
|
<GlobalStyles
|
||||||
|
styles={{
|
||||||
|
body: {
|
||||||
|
backgroundColor: theme.palette.background.main,
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
/>
|
||||||
<AppLayout>
|
<AppLayout>
|
||||||
<Routes />
|
<Routes />
|
||||||
</AppLayout>
|
</AppLayout>
|
||||||
|
|||||||
@@ -84,8 +84,8 @@ const Sidebar = () => {
|
|||||||
gap={theme.spacing(6)}
|
gap={theme.spacing(6)}
|
||||||
sx={{
|
sx={{
|
||||||
transition,
|
transition,
|
||||||
backgroundColor: "#000000",
|
backgroundColor: theme.palette.background.main,
|
||||||
borderRight: "1px solid #344054",
|
borderRight: `1px solid ${theme.palette.primary.lowContrast}`,
|
||||||
zIndex: 1000,
|
zIndex: 1000,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
background-color: #000000;
|
|
||||||
overscroll-behavior: none;
|
overscroll-behavior: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user