mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-26 20:11:49 +02:00
Fixed: Prompt to restart after resetting API key
Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
@@ -26,8 +26,7 @@ const requiresRestartKeys = [
|
|||||||
'sslCertPassword',
|
'sslCertPassword',
|
||||||
'authenticationMethod',
|
'authenticationMethod',
|
||||||
'username',
|
'username',
|
||||||
'password',
|
'password'
|
||||||
'apiKey'
|
|
||||||
];
|
];
|
||||||
|
|
||||||
class GeneralSettings extends Component {
|
class GeneralSettings extends Component {
|
||||||
@@ -47,9 +46,15 @@ class GeneralSettings extends Component {
|
|||||||
const {
|
const {
|
||||||
settings,
|
settings,
|
||||||
isSaving,
|
isSaving,
|
||||||
saveError
|
saveError,
|
||||||
|
isResettingApiKey
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
|
if (!isResettingApiKey && prevProps.isResettingApiKey) {
|
||||||
|
this.setState({ isRestartRequiredModalOpen: true });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (isSaving || saveError || !prevProps.isSaving) {
|
if (isSaving || saveError || !prevProps.isSaving) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user