Fixed: Prompt to restart after resetting API key

Signed-off-by: Robin Dadswell <robin@dadswell.email>
pull/770/head
Mark McDowall 5 years ago committed by Qstick
parent 0d8c259237
commit 4fcc463d6a

@ -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…
Cancel
Save