fix: additional tooltips for add plan modal

This commit is contained in:
garethgeorge
2024-05-18 19:12:31 -07:00
parent 294864fe43
commit fcdf07da6c

View File

@@ -152,6 +152,7 @@ export const AddPlanModal = ({ template }: { template: Plan | null }) => {
disabled={confirmLoading}
>
{/* Plan.id */}
<Tooltip title="Unique ID that identifies this plan in the backrest UI (e.g. s3-myplan). This cannot be changed after creation.">
<Form.Item<Plan>
hasFeedback
name="id"
@@ -184,8 +185,10 @@ export const AddPlanModal = ({ template }: { template: Plan | null }) => {
disabled={!!template}
/>
</Form.Item>
</Tooltip>
{/* Plan.repo */}
<Tooltip title="The repo that backrest will store your snapshots in.">
<Form.Item<Plan>
name="repo"
label="Repository"
@@ -206,6 +209,7 @@ export const AddPlanModal = ({ template }: { template: Plan | null }) => {
disabled={!!template}
/>
</Form.Item>
</Tooltip>
{/* Plan.paths */}
<Form.Item label="Paths" required={true}>
@@ -258,6 +262,20 @@ export const AddPlanModal = ({ template }: { template: Plan | null }) => {
</Form.Item>
{/* Plan.excludes */}
<Tooltip
title={
<>
Paths to exclude from your backups. See the{" "}
<a
href="https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files"
target="_blank"
>
restic docs
</a>{" "}
for more info.
</>
}
>
<Form.Item label="Excludes" required={false}>
<Form.List
name="excludes"
@@ -307,8 +325,23 @@ export const AddPlanModal = ({ template }: { template: Plan | null }) => {
)}
</Form.List>
</Form.Item>
</Tooltip>
{/* Plan.excludes */}
{/* Plan.iexcludes */}
<Tooltip
title={
<>
Case insensitive paths to exclude from your backups. See the{" "}
<a
href="https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files"
target="_blank"
>
restic docs
</a>{" "}
for more info.
</>
}
>
<Form.Item label="Excludes (Case Insensitive)" required={false}>
<Form.List
name="iexcludes"
@@ -358,6 +391,7 @@ export const AddPlanModal = ({ template }: { template: Plan | null }) => {
)}
</Form.List>
</Form.Item>
</Tooltip>
{/* Plan.cron */}
<Tooltip title="Cron expression to schedule the plan in 24 hour time">