diff --git a/src/components/settings/text/TextSetting.tsx b/src/components/settings/text/TextSetting.tsx index 8de112cc..1fcb59fe 100644 --- a/src/components/settings/text/TextSetting.tsx +++ b/src/components/settings/text/TextSetting.tsx @@ -14,19 +14,20 @@ import { TextSettingDialog, TextSettingDialogProps } from '@/components/settings export type TextSettingProps = Omit & Required> & { disabled?: boolean; + settingDescription?: string; }; export const TextSetting = (props: TextSettingProps) => { const [isDialogOpen, setIsDialogOpen] = useState(false); - const { settingName, value, isPassword = false, disabled = false } = props; + const { settingName, settingDescription, value, isPassword = false, disabled = false } = props; return ( <> setIsDialogOpen(true)}> updateSetting('backupPath', path)} /> { settingName={t('settings.server.local_source.path.label.title')} dialogDescription={t('settings.server.local_source.path.label.description')} value={serverSettings.localSourcePath} + settingDescription={ + serverSettings.localSourcePath.length ? serverSettings.localSourcePath : t('global.label.default') + } handleChange={(path) => updateSetting('localSourcePath', path)} /> diff --git a/src/screens/settings/DownloadSettings.tsx b/src/screens/settings/DownloadSettings.tsx index 15f188b0..0381a345 100644 --- a/src/screens/settings/DownloadSettings.tsx +++ b/src/screens/settings/DownloadSettings.tsx @@ -129,6 +129,9 @@ export const DownloadSettings = () => { settingName={t('download.settings.download_path.label.title')} dialogDescription={t('download.settings.download_path.label.description')} value={downloadSettings?.downloadsPath} + settingDescription={ + downloadSettings?.downloadsPath.length ? downloadSettings.downloadsPath : t('global.label.default') + } handleChange={(path) => updateSetting('downloadsPath', path)} /> diff --git a/src/screens/settings/WebUISettings.tsx b/src/screens/settings/WebUISettings.tsx index 04d98f7a..522be191 100644 --- a/src/screens/settings/WebUISettings.tsx +++ b/src/screens/settings/WebUISettings.tsx @@ -219,6 +219,9 @@ export const WebUISettings = () => { settingName={t('settings.webui.electron_path.label.title')} dialogDescription={t('settings.webui.electron_path.label.description')} value={webUISettings.electronPath} + settingDescription={ + webUISettings.electronPath.length ? webUISettings.electronPath : t('global.label.default') + } handleChange={(path) => updateSetting('electronPath', path)} />