1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-17 21:26:13 -04:00

Fixed: Prompt to restart after resetting API key

Fixes #3580
This commit is contained in:
Mark McDowall
2020-02-19 18:18:47 -08:00
parent 2c0a0175ef
commit 438d9eb717

View File

@@ -25,8 +25,7 @@ const requiresRestartKeys = [
'sslCertHash',
'authenticationMethod',
'username',
'password',
'apiKey'
'password'
];
class GeneralSettings extends Component {
@@ -46,9 +45,15 @@ class GeneralSettings extends Component {
const {
settings,
isSaving,
saveError
saveError,
isResettingApiKey
} = this.props;
if (!isResettingApiKey && prevProps.isResettingApiKey) {
this.setState({ isRestartRequiredModalOpen: true });
return;
}
if (isSaving || saveError || !prevProps.isSaving) {
return;
}