Merge pull request #2553 from bluewave-labs/hotfix/status-page

apply hotfix for logo
This commit is contained in:
Alexander Holliday authored and GitHub committed 2025-06-26 11:47:16 +08:00
commit e772a35243
4 files changed
+698 -694

No files matched your search

@@ -26,7 +26,8 @@ const ActionMenu = ({ notification, onDelete }) => {
setAnchorEl(null); setAnchorEl(null);
}; };
const handleRemove = () => { const handleRemove = (e) => {
e.stopPropagation();
onDelete(notification._id); onDelete(notification._id);
handleClose(); handleClose();
}; };
@@ -117,7 +117,7 @@ const TabSettings = ({
component="h2" component="h2"
variant="h2" variant="h2"
> >
{t("settingsAppearance")} {t("statusPageCreateAppearanceTitle")}
</Typography> </Typography>
<Typography component="p"> <Typography component="p">
{t("statusPageCreateAppearanceDescription")} {t("statusPageCreateAppearanceDescription")}
+2 -1
View File
@@ -60,6 +60,7 @@ const CreateStatusPage = () => {
const [statusPage, statusPageMonitors, statusPageIsLoading, statusPageNetworkError] = const [statusPage, statusPageMonitors, statusPageIsLoading, statusPageNetworkError] =
useStatusPageFetch(isCreate, url); useStatusPageFetch(isCreate, url);
console.log(JSON.stringify(form, null, 2));
// Handlers // Handlers
const handleFormChange = (e) => { const handleFormChange = (e) => {
let { type, name, value, checked } = e.target; let { type, name, value, checked } = e.target;
@@ -177,7 +178,7 @@ const CreateStatusPage = () => {
} }
let newLogo = undefined; let newLogo = undefined;
if (statusPage.logo) { if (statusPage.logo && Object.keys(statusPage.logo).length > 0) {
newLogo = { newLogo = {
src: `data:${statusPage.logo.contentType};base64,${statusPage.logo.data}`, src: `data:${statusPage.logo.contentType};base64,${statusPage.logo.data}`,
name: "logo", name: "logo",
+693 -691
View File
File diff suppressed because it is too large. Load diff