diff --git a/webui/src/views/AddPlanModal.tsx b/webui/src/views/AddPlanModal.tsx
index 54565b53..de91fc07 100644
--- a/webui/src/views/AddPlanModal.tsx
+++ b/webui/src/views/AddPlanModal.tsx
@@ -455,7 +455,7 @@ export const AddPlanModal = ({
{/* Disabled? toggles whether the plan will be scheduled. */}
Disable Scheduling
- } name="disabled" valuePropName="disabled">
+ } name="disabled" valuePropName="checked">
@@ -488,22 +488,32 @@ const RetentionPolicyView = () => {
const retention = Form.useWatch('retention', { form, preserve: true }) as any;
const determineMode = () => {
- console.log("DERIVE MODE BASED ON RETENTION: " + JSON.stringify(retention));
- if (!retention || retention.policyTimeBucketed) {
+ if (!retention) {
return 2;
- } else if (retention.policyKeepAll) {
- return 0;
} else if (retention.policyKeepLastN) {
return 1;
+ } else if (retention.policyKeepAll) {
+ return 0;
+ } else if (retention.policyTimeBucketed) {
+ return 2;
}
}
const mode = determineMode();
let elem: React.ReactNode = null;
- console.log("RENDERING WITH MODE: ", mode);
if (mode === 0) {
- elem = All backups are retained e.g. for append-only repos. Ensure that you manually forget / prune backups elsewhere. Backrest will register forgets performed externally on the next backup.
;
+ elem = <>
+ All backups are retained e.g. for append-only repos. Ensure that you manually forget / prune backups elsewhere. Backrest will register forgets performed externally on the next backup.
+
+
+
+ >
} else if (mode === 1) {
elem = (