mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 23:46:18 -05:00
Adding toggle to disable the tags directory feature.
This commit is contained in:
parent
74cb5171da
commit
9005c0deff
14 changed files with 141 additions and 21 deletions
|
|
@ -458,6 +458,7 @@ export function SettingsPage() {
|
|||
map_destination: settings.map_destination,
|
||||
nav_color: settings.nav_color,
|
||||
media_directory: settings.media_directory,
|
||||
tags_directory: settings.tags_directory,
|
||||
throttle_on_startup: settings.throttle_on_startup,
|
||||
videos_destination: settings.videos_destination,
|
||||
zims_destination: settings.zims_destination,
|
||||
|
|
@ -542,6 +543,16 @@ export function SettingsPage() {
|
|||
/>
|
||||
</div>
|
||||
|
||||
<div style={{margin: '0.5em'}}>
|
||||
<Toggle
|
||||
label='Tags Directory'
|
||||
disabled={disabled || state.tags_directory === null}
|
||||
checked={state.tags_directory === true}
|
||||
onChange={checked => handleInputChange(null, 'tags_directory', checked)}
|
||||
info='When enabled, WROLPi creates a "tags" directory with hardlinks to all tagged files, organized by tag name.'
|
||||
/>
|
||||
</div>
|
||||
|
||||
<Form.Group inline>
|
||||
<Form.Input
|
||||
label={<>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue