mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-09-14 12:05:39 +00:00
fix: AddPlanModal and AddRepoModal should only be closeable explicitly
This commit is contained in:
@@ -147,6 +147,7 @@ export const AddPlanModal = ({ template }: { template: Plan | null }) => {
|
||||
Submit
|
||||
</SpinButton>,
|
||||
]}
|
||||
maskClosable={false}
|
||||
>
|
||||
<Form
|
||||
autoComplete="off"
|
||||
|
||||
@@ -128,7 +128,7 @@ export const AddRepoModal = ({ template }: { template: Repo | null }) => {
|
||||
alertsApi.success("Added repo " + repo.uri);
|
||||
}
|
||||
} catch (e: any) {
|
||||
alertsApi.error(formatErrorAlert(e, "Operation error: "), 15);
|
||||
alertsApi.error(formatErrorAlert(e, "Operation error: "), 10);
|
||||
} finally {
|
||||
setConfirmLoading(false);
|
||||
}
|
||||
@@ -169,6 +169,7 @@ export const AddRepoModal = ({ template }: { template: Repo | null }) => {
|
||||
Submit
|
||||
</Button>,
|
||||
]}
|
||||
maskClosable={false}
|
||||
>
|
||||
<Form
|
||||
autoComplete="off"
|
||||
|
||||
Reference in New Issue
Block a user