mirror of
https://github.com/Readarr/Readarr
synced 2026-03-20 19:43:34 +01:00
Fixed: Prompt to restart after resetting API key
Signed-off-by: Robin Dadswell <robin@dadswell.email>
This commit is contained in:
parent
06d3e47232
commit
1423ebdb07
1 changed files with 8 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue