mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-01-02 06:48:13 +00:00
Fixed: Prompt to restart after resetting API key
Signed-off-by: Robin Dadswell <robin@dadswell.email>
This commit is contained in:
@@ -26,8 +26,7 @@ const requiresRestartKeys = [
|
||||
'sslCertPassword',
|
||||
'authenticationMethod',
|
||||
'username',
|
||||
'password',
|
||||
'apiKey'
|
||||
'password'
|
||||
];
|
||||
|
||||
class GeneralSettings extends Component {
|
||||
@@ -47,9 +46,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