mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-04 03:39:37 -05:00 
			
		
		
		
	disable version check settings when config file is set (#5756)
This commit is contained in:
		
							parent
							
								
									0aae9696f6
								
							
						
					
					
						commit
						67f020380f
					
				@ -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}
 | 
			
		||||
            />
 | 
			
		||||
            <SettingButtonsRow
 | 
			
		||||
              on:reset={({ detail }) => handleReset(detail)}
 | 
			
		||||
              on:save={saveSetting}
 | 
			
		||||
              showResetToDefault={!isEqual(savedConfig, defaultConfig)}
 | 
			
		||||
              {disabled}
 | 
			
		||||
            />
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
@ -116,7 +116,7 @@
 | 
			
		||||
      </SettingAccordion>
 | 
			
		||||
 | 
			
		||||
      <SettingAccordion title="Version Check" subtitle="Enable/disable the new version notification">
 | 
			
		||||
        <NewVersionCheckSettings newVersionCheckConfig={configs.newVersionCheck} />
 | 
			
		||||
        <NewVersionCheckSettings disabled={$featureFlags.configFile} newVersionCheckConfig={configs.newVersionCheck} />
 | 
			
		||||
      </SettingAccordion>
 | 
			
		||||
 | 
			
		||||
      <SettingAccordion
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user