- Update to add status page subdomain as env variable

- Adjust Server lists and Add new layout etc
- Adjust Save button
This commit is contained in:
Shemy Gan committed 2025-01-03 14:26:41 -05:00
1 parent 8b72f8447d
commit 5226f3c9b1
8 files changed
+149 -138

No files matched your search

@@ -150,7 +150,7 @@ const ContentPanel = () => {
>
<Stack
direction="row"
justifyContent="space-around"
justifyContent="space-between"
>
<Typography
component="p"
@@ -163,7 +163,7 @@ const ContentPanel = () => {
onClick={handleAddNew}
disabled={monitors.length === 0 || monitors.length <= cards.length}
>
Add New
Add new
</Button>
</Stack>
{cards.length > 0 && (
@@ -29,6 +29,8 @@ const GeneralSettingsPanel = () => {
const [progress, setProgress] = useState({ value: 0, isLoading: false });
const intervalRef = useRef(null);
const SUBDOAMIN_PREFIX =
import.meta.env.VITE_STATUS_PAGE_SUBDOMAIN_PREFIX ?? "http://localhost/";
// Clears specific error from errors state
const clearError = (err) => {
@@ -178,7 +180,7 @@ const GeneralSettingsPanel = () => {
value={form.url}
startAdornment={
<HttpAdornment
prefix={"http://uptimegenie.com/"}
prefix={SUBDOAMIN_PREFIX}
https={false}
/>
}