admin/options: warn about the need to reload the browser changing split_uploads
Massimo Melina committed
May 18, 2025 at 20:12 UTC
0f8a6b8d226a20a041203dfc1a889e2738142871
1 file changed
+2
admin/src/OptionsPage.ts
+2
@@ -287,6 +287,8 @@ export default function OptionsPage() {
287
if (onHttps && certChange && !await confirmDialog("You may disrupt https service, kicking you out"))
288
return
289
await apiCall('set_config', { values: changes })
290
+ if ('split_uploads' in changes)
291
+ await alertDialog("Users need to reload for the \"split uploads\" option to take effect", 'warning')
292
const ip = ipForUrl(loc.hostname)
293
const path = loc.pathname + loc.hash
294
const redirect = newPort <= 0 ? `${onHttps ? 'http:' : 'https:'}//${ip}:${otherPort}${path}` // jump protocol also in case of random port, because people must know their port while using GUI