diff --git a/messages/en-US.json b/messages/en-US.json index b5c0062c..13d002d1 100644 --- a/messages/en-US.json +++ b/messages/en-US.json @@ -2370,6 +2370,7 @@ "maintenanceModeDescription": "Display a maintenance page to visitors", "maintenanceModeType": "Maintenance Mode Type", "showMaintenancePage": "Show a maintenance page to visitors", + "enableMaintenanceMode": "Enable Maintenance Mode", "automatic": "Automatic", "automaticModeDescription": " Show maintenance page only when all backend targets are down or unhealthy. Your resource continues working normally as long as at least one target is healthy.", "forced": "Forced", diff --git a/src/app/[orgId]/settings/resources/[niceId]/general/page.tsx b/src/app/[orgId]/settings/resources/[niceId]/general/page.tsx index 042ded65..57729c0b 100644 --- a/src/app/[orgId]/settings/resources/[niceId]/general/page.tsx +++ b/src/app/[orgId]/settings/resources/[niceId]/general/page.tsx @@ -60,7 +60,6 @@ import { useLicenseStatusContext } from "@app/hooks/useLicenseStatusContext"; import { useSubscriptionStatusContext } from "@app/hooks/useSubscriptionStatusContext"; import { useUserContext } from "@app/hooks/useUserContext"; import { Alert, AlertDescription } from "@app/components/ui/alert"; -import { Separator } from "@app/components/ui/separator"; import { RadioGroup, RadioGroupItem } from "@app/components/ui/radio-group"; export default function GeneralForm() { @@ -470,170 +469,6 @@ export default function GeneralForm() { - - - -
-
-

- {t("maintenanceMode")} -

-

- {t("maintenanceModeDescription")} -

-
- - ( - -
- - - form.setValue( - "maintenanceModeEnabled", - val - ) - } - /> - -
- - {t("showMaintenancePage")} - - -
- )} - /> - - {isMaintenanceEnabled && ( -
- ( - - - {t("maintenanceModeType")} - - - - - - - -
- - {t("automatic")} ({t("recommended")}) - - - {t("automaticModeDescription")} - -
-
- - - - -
- - {t("forced")} - - - {t("forcedModeDescription")} - -
-
-
-
- -
- )} - /> - - {maintenanceModeType === "forced" && ( - - - - {t("warning:")} {t("forcedModeWarning")} - - - )} - - ( - - {t("pageTitle")} - - - - - {t("pageTitleDescription")} - - - - )} - /> - - ( - - {t("maintenancePageMessage")} - -