Skip to content

Commit

Permalink
disable field in xmltv
Browse files Browse the repository at this point in the history
  • Loading branch information
markdavella committed Apr 16, 2024
1 parent e2e840c commit 3c465d2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions web/src/pages/settings/XmlTvSettingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ export default function XmlTvSettingsPage() {
<TextField
id="output-path"
label="Output Path"
InputProps={{
readOnly: true,
disabled: true,
}}
helperText={
'You can edit this location in file xmltv-settings.json.'
}
Expand All @@ -97,7 +101,7 @@ export default function XmlTvSettingsPage() {
)}
/>
</FormControl>
<Stack spacing={2} direction={{ sm: 'column', md: 'row' }}>
<Stack spacing={2} direction={{ sm: 'column', md: 'row' }} sx={{ mt: 2 }}>
<NumericFormControllerText
control={control}
name="programmingHours"
Expand Down Expand Up @@ -146,7 +150,7 @@ export default function XmlTvSettingsPage() {
<Button
variant="outlined"
onClick={() => {
reset(defaultXmlTvSettings);
reset({ ...defaultXmlTvSettings, outputPath: data.outputPath });
setRestoreTunarrDefaults(true);
}}
>
Expand Down

0 comments on commit 3c465d2

Please sign in to comment.