Skip to content

Commit

Permalink
fix: AddPlanModal and AddRepoModal should only be closeable explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
garethgeorge committed Jun 26, 2024
1 parent 3099be5 commit 15f92fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions webui/src/views/AddPlanModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export const AddPlanModal = ({ template }: { template: Plan | null }) => {
Submit
</SpinButton>,
]}
maskClosable={false}
>
<Form
autoComplete="off"
Expand Down
3 changes: 2 additions & 1 deletion webui/src/views/AddRepoModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -169,6 +169,7 @@ export const AddRepoModal = ({ template }: { template: Repo | null }) => {
Submit
</Button>,
]}
maskClosable={false}
>
<Form
autoComplete="off"
Expand Down

0 comments on commit 15f92fc

Please sign in to comment.