Disable webUI settings for custom flavor only (#768)

This commit is contained in:
robo
2024-06-16 15:35:40 +02:00
committed by GitHub
parent f2649bd693
commit 26f0fefc0a
+3 -3
View File
@@ -191,7 +191,7 @@ export const WebUISettings = () => {
}
const webUISettings = extractWebUISettings(data!.settings);
const isDefaultWebUI = webUISettings.webUIFlavor === WebUiFlavor.Webui;
const isCustomWebUI = webUISettings.webUIFlavor === WebUiFlavor.Custom;
return (
<List>
@@ -226,10 +226,10 @@ export const WebUISettings = () => {
value={webUISettings.webUIChannel}
values={CHANNEL_SELECT_VALUES}
handleChange={(channel) => updateSetting('webUIChannel', channel)}
disabled={!isDefaultWebUI}
disabled={isCustomWebUI}
/>
<WebUIUpdateIntervalSetting
disabled={!isDefaultWebUI}
disabled={isCustomWebUI}
updateCheckInterval={webUISettings.webUIUpdateCheckInterval}
/>
{!webUISettings.webUIUpdateCheckInterval && (