From 01de7dd599cfad9b00dc13122c0b2542aeea454e Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 27 Jan 2019 00:56:21 -0500 Subject: [PATCH] Fixed: Discarded settings changes don't get cleaned Fixes #606 --- .../DownloadClients/Options/DownloadClientOptionsConnector.js | 2 +- frontend/src/Settings/General/GeneralSettingsConnector.js | 2 +- .../src/Settings/Indexers/Options/IndexerOptionsConnector.js | 2 +- .../src/Settings/MediaManagement/MediaManagementConnector.js | 2 +- frontend/src/Settings/MediaManagement/Naming/NamingConnector.js | 2 +- .../Metadata/MetadataProvider/MetadataProviderConnector.js | 2 +- frontend/src/Settings/UI/UISettingsConnector.js | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/src/Settings/DownloadClients/Options/DownloadClientOptionsConnector.js b/frontend/src/Settings/DownloadClients/Options/DownloadClientOptionsConnector.js index ef97de47f..d709481b1 100644 --- a/frontend/src/Settings/DownloadClients/Options/DownloadClientOptionsConnector.js +++ b/frontend/src/Settings/DownloadClients/Options/DownloadClientOptionsConnector.js @@ -64,7 +64,7 @@ class DownloadClientOptionsConnector extends Component { } componentWillUnmount() { - this.props.dispatchClearPendingChanges({ section: SECTION }); + this.props.dispatchClearPendingChanges({ section: 'settings.downloadClientOptions' }); } // diff --git a/frontend/src/Settings/General/GeneralSettingsConnector.js b/frontend/src/Settings/General/GeneralSettingsConnector.js index 804fdfde7..f63e70a3b 100644 --- a/frontend/src/Settings/General/GeneralSettingsConnector.js +++ b/frontend/src/Settings/General/GeneralSettingsConnector.js @@ -58,7 +58,7 @@ class GeneralSettingsConnector extends Component { } componentWillUnmount() { - this.props.clearPendingChanges({ section: SECTION }); + this.props.clearPendingChanges({ section: 'settings.general' }); } // diff --git a/frontend/src/Settings/Indexers/Options/IndexerOptionsConnector.js b/frontend/src/Settings/Indexers/Options/IndexerOptionsConnector.js index 28d07c77e..54a76a1d9 100644 --- a/frontend/src/Settings/Indexers/Options/IndexerOptionsConnector.js +++ b/frontend/src/Settings/Indexers/Options/IndexerOptionsConnector.js @@ -64,7 +64,7 @@ class IndexerOptionsConnector extends Component { } componentWillUnmount() { - this.props.dispatchClearPendingChanges({ section: SECTION }); + this.props.dispatchClearPendingChanges({ section: 'settings.indexerOptions' }); } // diff --git a/frontend/src/Settings/MediaManagement/MediaManagementConnector.js b/frontend/src/Settings/MediaManagement/MediaManagementConnector.js index d6ad03ad2..5a6250392 100644 --- a/frontend/src/Settings/MediaManagement/MediaManagementConnector.js +++ b/frontend/src/Settings/MediaManagement/MediaManagementConnector.js @@ -46,7 +46,7 @@ class MediaManagementConnector extends Component { } componentWillUnmount() { - this.props.clearPendingChanges({ section: SECTION }); + this.props.clearPendingChanges({ section: 'settings.mediaManagement' }); } // diff --git a/frontend/src/Settings/MediaManagement/Naming/NamingConnector.js b/frontend/src/Settings/MediaManagement/Naming/NamingConnector.js index d8210317e..bd11e4299 100644 --- a/frontend/src/Settings/MediaManagement/Naming/NamingConnector.js +++ b/frontend/src/Settings/MediaManagement/Naming/NamingConnector.js @@ -50,7 +50,7 @@ class NamingConnector extends Component { } componentWillUnmount() { - this.props.clearPendingChanges({ section: SECTION }); + this.props.clearPendingChanges({ section: 'settings.naming' }); } // diff --git a/frontend/src/Settings/Metadata/MetadataProvider/MetadataProviderConnector.js b/frontend/src/Settings/Metadata/MetadataProvider/MetadataProviderConnector.js index 682cdb374..7b459acf3 100644 --- a/frontend/src/Settings/Metadata/MetadataProvider/MetadataProviderConnector.js +++ b/frontend/src/Settings/Metadata/MetadataProvider/MetadataProviderConnector.js @@ -64,7 +64,7 @@ class MetadataProviderConnector extends Component { } componentWillUnmount() { - this.props.dispatchClearPendingChanges({ section: SECTION }); + this.props.dispatchClearPendingChanges({ section: 'settings.metadataProvider' }); } // diff --git a/frontend/src/Settings/UI/UISettingsConnector.js b/frontend/src/Settings/UI/UISettingsConnector.js index 24b55b6f0..e2dabe9c3 100644 --- a/frontend/src/Settings/UI/UISettingsConnector.js +++ b/frontend/src/Settings/UI/UISettingsConnector.js @@ -39,7 +39,7 @@ class UISettingsConnector extends Component { } componentWillUnmount() { - this.props.clearPendingChanges({ section: SECTION }); + this.props.clearPendingChanges({ section: 'settings.ui' }); } //