mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
[Feature] Config option for sub content display (#2832)
Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -39,9 +39,14 @@ const allMenuItems = [
|
||||
export const SettingsInterfacePanel: React.FC = () => {
|
||||
const intl = useIntl();
|
||||
|
||||
const { interface: iface, saveInterface, loading, error } = React.useContext(
|
||||
SettingStateContext
|
||||
);
|
||||
const {
|
||||
interface: iface,
|
||||
saveInterface,
|
||||
ui,
|
||||
saveUI,
|
||||
loading,
|
||||
error,
|
||||
} = React.useContext(SettingStateContext);
|
||||
|
||||
const {
|
||||
interactive,
|
||||
@@ -241,6 +246,24 @@ export const SettingsInterfacePanel: React.FC = () => {
|
||||
}}
|
||||
/>
|
||||
</SettingSection>
|
||||
<SettingSection headingID="config.ui.tag_panel.heading">
|
||||
<BooleanSetting
|
||||
id="show-child-tagged-content"
|
||||
headingID="config.ui.tag_panel.options.show_child_tagged_content.heading"
|
||||
subHeadingID="config.ui.tag_panel.options.show_child_tagged_content.description"
|
||||
checked={ui.showChildTagContent ?? undefined}
|
||||
onChange={(v) => saveUI({ showChildTagContent: v })}
|
||||
/>
|
||||
</SettingSection>
|
||||
<SettingSection headingID="config.ui.studio_panel.heading">
|
||||
<BooleanSetting
|
||||
id="show-child-studio-content"
|
||||
headingID="config.ui.studio_panel.options.show_child_studio_content.heading"
|
||||
subHeadingID="config.ui.studio_panel.options.show_child_studio_content.description"
|
||||
checked={ui.showChildStudioContent ?? undefined}
|
||||
onChange={(v) => saveUI({ showChildStudioContent: v })}
|
||||
/>
|
||||
</SettingSection>
|
||||
|
||||
<SettingSection headingID="config.ui.image_lightbox.heading">
|
||||
<NumberSetting
|
||||
|
||||
Reference in New Issue
Block a user