mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
Fixed: Prompt to restart after resetting API key
Signed-off-by: Robin Dadswell <robin@dadswell.email>
This commit is contained in:
@@ -27,8 +27,7 @@ const requiresRestartKeys = [
|
||||
'sslCertPassword',
|
||||
'authenticationMethod',
|
||||
'username',
|
||||
'password',
|
||||
'apiKey'
|
||||
'password'
|
||||
];
|
||||
|
||||
class GeneralSettings extends Component {
|
||||
@@ -48,9 +47,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user