admin/options: marked some required fields
Massimo Melina committed
Sep 22, 2024 at 17:45 UTC
3a445c6bde65c0529ccc90ee34df2ac9d40ace1b
1 file changed
+7
-5
admin/src/OptionsPage.ts
+7
-5
@@ -146,7 +146,7 @@ export default function OptionsPage() {
146
helperText: "Access Admin-panel without entering credentials"
147
},
148
149
- { k: 'proxies', comp: NumberField, min: 0, max: 9, label: "Number of HTTP proxies",
149
+ { k: 'proxies', comp: NumberField, min: 0, max: 9, label: "Number of HTTP proxies", placeholder: "none",
150
error: proxyWarning(values, status),
151
helperText: "Wrong number will prevent detection of users' IP address"
152
},
@@ -180,8 +180,10 @@ export default function OptionsPage() {
180
},
181
{ k: 'title', md: 8, helperText: "You can see this in the tab of your browser" },
182
183
- { k: 'auto_play_seconds', comp: NumberField, xs: 6, sm: 3, min: 1, max: 10000, label: "Auto-play seconds delay", helperText: md(`Default value for the [Show interface](${REPO_URL}discussions/270)`) },
184
- { k: 'tile_size', comp: NumberField, xs: 6, sm: 3, min: 0, max: MAX_TILE_SIZE, label: "Default tiles size", helperText: wikiLink('Tiles', "To enable tiles-mode") },
183
+ { k: 'auto_play_seconds', comp: NumberField, xs: 6, sm: 3, min: 1, max: 10000, required: true,
184
+ label: "Auto-play seconds delay", helperText: md(`Default value for the [Show interface](${REPO_URL}discussions/270)`) },
185
+ { k: 'tile_size', comp: NumberField, xs: 6, sm: 3, min: 0, max: MAX_TILE_SIZE, required: true,
186
+ label: "Default tiles size", helperText: wikiLink('Tiles', "To enable tiles-mode") },
187
{ k: 'theme', comp: SelectField, xs: 6, sm: 3, options: THEME_OPTIONS },
188
{ k: 'sort_by', comp: SelectField, xs: 6, sm: 3, options: SORT_BY_OPTIONS },
189
@@ -204,8 +206,8 @@ export default function OptionsPage() {
206
h(Section, { title: "Others" }),
207
{ k: 'keep_session_alive', comp: BoolField, sm: 4, md: 6, helperText: "Keeps you logged in while the page is left open and the computer is on" },
208
{ k: 'session_duration', comp: NumberField, sm: 4, md: 3, min: 5, unit: "seconds", required: true },
207
- { k: 'zip_calculate_size_for_seconds', comp: NumberField, sm: 4, md: 3, label: "Calculate ZIP size for", unit: "seconds",
208
- helperText: "If time is not enough, the browser will not show download percentage" },
209
+ { k: 'zip_calculate_size_for_seconds', comp: NumberField, sm: 4, md: 3, unit: "seconds", required: true, min: 0,
210
+ label: "Calculate ZIP size for", helperText: "If time is not enough, the browser will not show download percentage" },
211
212
{ k: 'descript_ion', comp: BoolField, ...isWindows && { sm: 4, md: 3 }, label: "Enable comments", helperText: "In file DESCRIPT.ION" },
213
isWindows && { k: 'show_hidden_files', comp: BoolField, sm: 4, md: 3, helperText: "Showing makes search faster" },