1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-18 21:35:27 -04:00

Fix settings fetching failure for updates

This commit is contained in:
Bogdan
2024-10-20 04:52:01 +03:00
committed by Mark McDowall
parent 404e6d68ea
commit fcf68d9259
10 changed files with 22 additions and 16 deletions
+9 -3
View File
@@ -77,7 +77,7 @@ function Updates() {
const hasUpdates = isPopulated && !hasError && items.length > 0;
const noUpdates = isPopulated && !hasError && !items.length;
const externalUpdaterPrefix = translate('UpdateSonarrDirectlyLoadError');
const externalUpdaterPrefix = translate('UpdateAppDirectlyLoadError');
const externalUpdaterMessages: Partial<Record<UpdateMechanism, string>> = {
external: translate('ExternalUpdater'),
apt: translate('AptUpdater'),
@@ -262,10 +262,16 @@ function Updates() {
</div>
)}
{updatesError ? <div>{translate('FailedToFetchUpdates')}</div> : null}
{updatesError ? (
<Alert kind={kinds.WARNING}>
{translate('FailedToFetchUpdates')}
</Alert>
) : null}
{generalSettingsError ? (
<div>{translate('FailedToUpdateSettings')}</div>
<Alert kind={kinds.DANGER}>
{translate('FailedToFetchSettings')}
</Alert>
) : null}
<ConfirmModal