From 67f020380f4be8991f8a91b81c73b0b88b3d543d Mon Sep 17 00:00:00 2001 From: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com> Date: Sat, 16 Dec 2023 20:39:17 +0100 Subject: [PATCH] disable version check settings when config file is set (#5756) --- .../new-version-check-settings.svelte | 3 +++ web/src/routes/admin/system-settings/+page.svelte | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/lib/components/admin-page/settings/new-version-check-settings/new-version-check-settings.svelte b/web/src/lib/components/admin-page/settings/new-version-check-settings/new-version-check-settings.svelte index 7a88bcc065..6fbfa014a1 100644 --- a/web/src/lib/components/admin-page/settings/new-version-check-settings/new-version-check-settings.svelte +++ b/web/src/lib/components/admin-page/settings/new-version-check-settings/new-version-check-settings.svelte @@ -12,6 +12,7 @@ import type { ResetOptions } from '$lib/utils/dipatch'; export let newVersionCheckConfig: SystemConfigNewVersionCheckDto; // this is the config that is being edited + export let disabled = false; let savedConfig: SystemConfigNewVersionCheckDto; let defaultConfig: SystemConfigNewVersionCheckDto; @@ -86,11 +87,13 @@ title="ENABLED" subtitle="Enable period requests to GitHub to check for new releases" bind:checked={newVersionCheckConfig.enabled} + {disabled} /> handleReset(detail)} on:save={saveSetting} showResetToDefault={!isEqual(savedConfig, defaultConfig)} + {disabled} /> diff --git a/web/src/routes/admin/system-settings/+page.svelte b/web/src/routes/admin/system-settings/+page.svelte index 8f3cc9f5fd..2a6fce5aec 100644 --- a/web/src/routes/admin/system-settings/+page.svelte +++ b/web/src/routes/admin/system-settings/+page.svelte @@ -116,7 +116,7 @@ - +