mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 21:10:12 +02:00
add automatic country prioritization based on existing releases
This commit is contained in:
@@ -378,6 +378,27 @@ export const IntegrationsTab = memo(() => {
|
||||
isHidden: !musicBrainz || !settings.musicBrainz,
|
||||
title: t('setting.musicbrainzPrioritizeCountries', { postProcess: 'sentenceCase' }),
|
||||
},
|
||||
{
|
||||
control: (
|
||||
<Switch
|
||||
aria-label={t('setting.musicbrainzAutoCountryPriority', {
|
||||
postProcess: 'sentenceCase',
|
||||
})}
|
||||
defaultChecked={settings.musicbrainzAutoCountryPriority}
|
||||
onChange={(e) =>
|
||||
updateIntegrations({
|
||||
musicbrainzAutoCountryPriority: e.currentTarget.checked,
|
||||
})
|
||||
}
|
||||
/>
|
||||
),
|
||||
description: t('setting.musicbrainzAutoCountryPriority', {
|
||||
context: 'description',
|
||||
postProcess: 'sentenceCase',
|
||||
}),
|
||||
isHidden: !musicBrainz || !settings.musicBrainz,
|
||||
title: t('setting.musicbrainzAutoCountryPriority', { postProcess: 'sentenceCase' }),
|
||||
},
|
||||
{
|
||||
control: (
|
||||
<Switch
|
||||
@@ -397,10 +418,7 @@ export const IntegrationsTab = memo(() => {
|
||||
|
||||
return (
|
||||
<Stack gap="md">
|
||||
<SettingsSection
|
||||
options={options}
|
||||
title={t('page.setting.integrationsTab', { postProcess: 'sentenceCase' })}
|
||||
/>
|
||||
<SettingsSection options={options} title={'MusicBrainz'} />
|
||||
</Stack>
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user