When saved, these will be written to your local.yaml file. Storing these settings in your
local configuration file (rather than the database) allows your WROLPi to be rebuilt and save your
settings.
This directory must already exist.
The directory in which your media will be stored. Typically, this will be some external
drive like /media/wrolpi.
)
}
}
class WROLMode extends React.Component {
constructor(props) {
super(props);
this.state = {
WROLMode: false,
}
}
async componentDidMount() {
let config = await getConfig();
this.setState({ready: true, WROLMode: config.wrol_mode});
}
toggleWROLMode = async () => {
// Handle WROL Mode toggling by itself so that other settings are not modified.
let config = {
wrol_mode: !this.state.WROLMode,
}
await saveConfig(config);
this.setState({disabled: !this.state.WROLMode, WROLMode: !this.state.WROLMode});
}
render() {
if (this.state.ready === false) {
return
}
return (
WROL Mode
Enable read-only mode. No content can be deleted or modified. Enable this when the SHTF and you
want to prevent any potential loss of data.
Note: User settings and favorites can still be modified.