|
17 | 17 | */ |
18 | 18 |
|
19 | 19 | import { |
20 | | - ActionIcon, Box, Button, Flex, Grid, Group, PasswordInput, SegmentedControl, |
| 20 | + ActionIcon, Box, Button, Checkbox, Flex, Grid, Group, PasswordInput, SegmentedControl, |
21 | 21 | Stack, Switch, Tabs, Text, Textarea, TextInput, |
22 | 22 | } from "@mantine/core"; |
23 | 23 | import type { ServerConfig, WindowCloseOption, WindowMinimizeOption } from "config"; |
@@ -72,7 +72,7 @@ function ServerListPanel({ form, current, setCurrent }: ServerListPanelProps) { |
72 | 72 | <ActionIcon variant="light" |
73 | 73 | onClick={() => { |
74 | 74 | form.insertListItem("servers", { |
75 | | - connection: { url: "", username: "", password: "" }, |
| 75 | + connection: { url: "", username: "", password: "", acceptInvalidCerts: false }, |
76 | 76 | name: "new", |
77 | 77 | pathMappings: [], |
78 | 78 | expandedDirFilters: [], |
@@ -142,6 +142,12 @@ function ServerPanel(props: ServerPanelProps) { |
142 | 142 | placeholder="http://1.2.3.4:9091/transmission/rpc" |
143 | 143 | autoComplete="off" autoCorrect="off" autoCapitalize="off" spellCheck="false" /> |
144 | 144 |
|
| 145 | + <Checkbox |
| 146 | + my="md" |
| 147 | + label="Accept invalid SSL certificates" |
| 148 | + {...props.form.getInputProps(`servers.${props.current}.connection.acceptInvalidCerts`, { type: "checkbox" })} |
| 149 | + /> |
| 150 | + |
145 | 151 | <Grid> |
146 | 152 | <Grid.Col span={6}> |
147 | 153 | <TextInput |
|
0 commit comments