diff --git a/app/src/components/admin/Settings.js b/app/src/components/admin/Settings.js index 95eee6a9..4a253abe 100644 --- a/app/src/components/admin/Settings.js +++ b/app/src/components/admin/Settings.js @@ -1,16 +1,8 @@ import React from "react"; import {SettingsContext, StatusContext} from "../../contexts/contexts"; import {checkUpgrade, postRestart, postShutdown, saveSettings as saveSettingsApi, triggerUpgrade} from "../../api"; -import {getServices, stopService, startService} from "../../api/controller"; -import { - Button, - Divider, - Form, - Header, - Loader, - Modal, - Segment -} from "../Theme"; +import {getServices, startService, stopService} from "../../api/controller"; +import {Button, Divider, Form, Header, Loader, Modal, Segment} from "../Theme"; import {ButtonGroup, Container, Dimmer, Dropdown, GridColumn, GridRow, Icon, Input} from "semantic-ui-react"; import { APIButton, @@ -510,123 +502,140 @@ export function SettingsPage() {

Any changes will be written to {settings.media_directory}/config/wrolpi.yaml.

-
- handleInputChange(null, 'download_on_startup', checked)} - /> -
+ + + +
+ handleInputChange(null, 'download_on_startup', checked)} + /> +
-
- handleInputChange(null, 'throttle_on_startup', checked)} - /> -
+
+ handleInputChange(null, 'throttle_on_startup', checked)} + /> +
-
- handleInputChange(null, 'ignore_outdated_zims', checked)} - /> -
+
+ handleInputChange(null, 'ignore_outdated_zims', checked)} + /> +
-
- handleInputChange(null, 'check_for_upgrades', checked)} - /> -
+
+ handleInputChange(null, 'check_for_upgrades', checked)} + /> +
-
- handleInputChange(null, 'tags_directory', checked)} - info='When enabled, WROLPi creates a "tags" directory with hardlinks to all tagged files, organized by tag name.' - /> -
+
+ handleInputChange(null, 'tags_directory', checked)} + info='When enabled, WROLPi creates a "tags" directory with hardlinks to all tagged files, organized by tag name.' + /> +
-
- handleInputChange(null, 'save_ffprobe_json', checked)} - info='When enabled, FFprobe results are saved as .ffprobe.json files alongside videos. This speeds up reindexing but uses additional disk space (~5KB per video).' - /> -
+
+ handleInputChange(null, 'save_ffprobe_json', checked)} + info='When enabled, FFprobe results are saved as .ffprobe.json files alongside videos. This speeds up reindexing but uses additional disk space (~5KB per video).' + /> +
- - - Wait Between Downloads - - } - value={state.download_wait} - disabled={disabled || state.download_wait === null} - onChange={(e, i) => handleTimeoutChange(e, 'download_wait', i.value)} - /> - + + + Wait Between Downloads + + } + value={state.download_wait} + disabled={disabled || state.download_wait === null} + onChange={(e, i) => handleTimeoutChange(e, 'download_wait', i.value)} + /> + - - - Download Timeout - - } - value={state.download_timeout} - disabled={disabled || state.download_timeout === null} - onChange={(e, i) => handleTimeoutChange(e, 'download_timeout', i.value)} - /> - + } + value={state.download_timeout} + disabled={disabled || state.download_timeout === null} + onChange={(e, i) => handleTimeoutChange(e, 'download_timeout', i.value)} + /> + +
+ + + setState({...state, hotspot_ssid: i.value})} + style={{marginBottom: '0.5em'}} + /> + setState({...state, hotspot_password: i.value})} + style={{marginBottom: '0.5em'}} + /> + handleInputChange(e, 'hotspot_device', i.value)} + style={{marginBottom: '0.5em'}} + /> - - setState({...state, hotspot_ssid: i.value})} - /> - setState({...state, hotspot_password: i.value})} - /> - handleInputChange(e, 'hotspot_device', i.value)} - /> - + setQrOpen(false)} + onOpen={handleQrOpen} + open={qrOpen} + trigger={qrButton} + > + + Scan this code to join the hotspot + + +
+ +
+
+
+ +
+
+
+
- setQrOpen(false)} - onOpen={handleQrOpen} - open={qrOpen} - trigger={qrButton} - > - - Scan this code to join the hotspot - - -
- -
-
-

@@ -681,7 +690,9 @@ export function SettingsPage() {

Variables:

@@ -707,7 +718,9 @@ export function SettingsPage() {

Variables: