mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-14 11:23:42 +02:00
parent
2c0a0175ef
commit
438d9eb717
@ -25,8 +25,7 @@ const requiresRestartKeys = [
|
|||||||
'sslCertHash',
|
'sslCertHash',
|
||||||
'authenticationMethod',
|
'authenticationMethod',
|
||||||
'username',
|
'username',
|
||||||
'password',
|
'password'
|
||||||
'apiKey'
|
|
||||||
];
|
];
|
||||||
|
|
||||||
class GeneralSettings extends Component {
|
class GeneralSettings extends Component {
|
||||||
@ -46,9 +45,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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user