This commit is contained in:
Alex Holliday committed 2026-02-03 19:50:36 +00:00
1 parent 3c0c470ca3
commit 2d85abf030
2 files changed
+25 -2

No files matched your search

+16 -1
View File
@@ -28,6 +28,7 @@ import type { StatusPageResponse } from "@/Types/StatusPage";
import timezones from "@/Utils/timezones.json"; import timezones from "@/Utils/timezones.json";
import { useNavigate, useParams } from "react-router-dom"; import { useNavigate, useParams } from "react-router-dom";
import axios from "axios"; import axios from "axios";
import { MuiColorInput } from "mui-color-input";
interface TimezoneOption { interface TimezoneOption {
_id: string; _id: string;
@@ -130,7 +131,7 @@ const CreateStatusPage = () => {
headers: { "Content-Type": "multipart/form-data" }, headers: { "Content-Type": "multipart/form-data" },
}); });
} else { } else {
result = await put(`/status-page/${url}`, fd, { result = await put(`/status-page/${statusPageData?.statusPage.id}`, fd, {
headers: { "Content-Type": "multipart/form-data" }, headers: { "Content-Type": "multipart/form-data" },
}); });
} }
@@ -358,6 +359,7 @@ const CreateStatusPage = () => {
title={t("pages.statusPages.form.appearance.title")} title={t("pages.statusPages.form.appearance.title")}
subtitle={t("pages.statusPages.form.appearance.description")} subtitle={t("pages.statusPages.form.appearance.description")}
rightContent={ rightContent={
<Stack spacing={theme.spacing(8)}>
<Stack alignItems={"center"}> <Stack alignItems={"center"}>
<Controller <Controller
name="logo" name="logo"
@@ -379,6 +381,19 @@ const CreateStatusPage = () => {
)} )}
/> />
</Stack> </Stack>
<Controller
name="color"
control={control}
render={({ field }) => (
<MuiColorInput
format="hex"
value={field.value}
onChange={field.onChange}
label={t("pages.statusPages.form.appearance.option.color.label")}
/>
)}
/>
</Stack>
} }
/> />
<ConfigBox <ConfigBox
+9 -1
View File
@@ -943,7 +943,15 @@
}, },
"appearance": { "appearance": {
"title": "Appearance", "title": "Appearance",
"description": "Define the default look and feel of your public status page." "description": "Define the default look and feel of your public status page.",
"option": {
"logo": {
"label": "Logo"
},
"color": {
"label": "Brand color"
}
}
}, },
"features": { "features": {
"title": "Features", "title": "Features",