mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-08 05:51:47 -07:00
Fixed: Prompt to restart after resetting API key
This commit is contained in:
parent
c0aa16d8bb
commit
812e4cac51
1 changed files with 8 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue