mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
UI Action Handler Changes, Misc Fixes
This commit is contained in:
parent
7825319d89
commit
cd5b658196
193 changed files with 6992 additions and 6341 deletions
|
@ -6,7 +6,7 @@ import { cancelTestDownloadClient, cancelSaveDownloadClient } from 'Store/Action
|
|||
import EditDownloadClientModal from './EditDownloadClientModal';
|
||||
|
||||
function createMapDispatchToProps(dispatch, props) {
|
||||
const section = 'downloadClients';
|
||||
const section = 'settings.downloadClients';
|
||||
|
||||
return {
|
||||
dispatchClearPendingChanges() {
|
||||
|
|
|
@ -88,5 +88,5 @@ export default connectSection(
|
|||
mapDispatchToProps,
|
||||
undefined,
|
||||
{ withRef: true },
|
||||
{ section: 'downloadClientOptions' }
|
||||
{ section: 'settings.downloadClientOptions' }
|
||||
)(DownloadClientOptionsConnector);
|
||||
|
|
|
@ -18,7 +18,7 @@ class EditRemotePathMappingModalConnector extends Component {
|
|||
// Listeners
|
||||
|
||||
onModalClose = () => {
|
||||
this.props.clearPendingChanges({ section: 'remotePathMappings' });
|
||||
this.props.clearPendingChanges({ section: 'settings.remotePathMappings' });
|
||||
this.props.onModalClose();
|
||||
}
|
||||
|
||||
|
|
|
@ -113,5 +113,5 @@ export default connectSection(
|
|||
mapDispatchToProps,
|
||||
undefined,
|
||||
undefined,
|
||||
{ section: 'general' }
|
||||
{ section: 'settings.general' }
|
||||
)(GeneralSettingsConnector);
|
||||
|
|
|
@ -6,7 +6,7 @@ import { cancelTestIndexer, cancelSaveIndexer } from 'Store/Actions/settingsActi
|
|||
import EditIndexerModal from './EditIndexerModal';
|
||||
|
||||
function createMapDispatchToProps(dispatch, props) {
|
||||
const section = 'indexers';
|
||||
const section = 'settings.indexers';
|
||||
|
||||
return {
|
||||
dispatchClearPendingChanges() {
|
||||
|
|
|
@ -88,5 +88,5 @@ export default connectSection(
|
|||
mapDispatchToProps,
|
||||
undefined,
|
||||
{ withRef: true },
|
||||
{ section: 'indexerOptions' }
|
||||
{ section: 'settings.indexerOptions' }
|
||||
)(IndexerOptionsConnector);
|
||||
|
|
|
@ -14,7 +14,7 @@ class EditRestrictionModalConnector extends Component {
|
|||
// Listeners
|
||||
|
||||
onModalClose = () => {
|
||||
this.props.clearPendingChanges({ section: 'restrictions' });
|
||||
this.props.clearPendingChanges({ section: 'settings.restrictions' });
|
||||
this.props.onModalClose();
|
||||
}
|
||||
|
||||
|
|
|
@ -87,5 +87,5 @@ export default connectSection(
|
|||
mapDispatchToProps,
|
||||
undefined,
|
||||
undefined,
|
||||
{ section: 'mediaManagement' }
|
||||
{ section: 'settings.mediaManagement' }
|
||||
)(MediaManagementConnector);
|
||||
|
|
|
@ -98,5 +98,5 @@ export default connectSection(
|
|||
mapDispatchToProps,
|
||||
undefined,
|
||||
undefined,
|
||||
{ section: 'naming' }
|
||||
{ section: 'settings.naming' }
|
||||
)(NamingConnector);
|
||||
|
|
|
@ -5,7 +5,7 @@ import { clearPendingChanges } from 'Store/Actions/baseActions';
|
|||
import EditMetadataModal from './EditMetadataModal';
|
||||
|
||||
function createMapDispatchToProps(dispatch, props) {
|
||||
const section = 'metadata';
|
||||
const section = 'settings.metadata';
|
||||
|
||||
return {
|
||||
dispatchClearPendingChanges() {
|
||||
|
|
|
@ -84,9 +84,9 @@ MetadataProviderConnector.propTypes = {
|
|||
};
|
||||
|
||||
export default connectSection(
|
||||
createMapStateToProps,
|
||||
mapDispatchToProps,
|
||||
undefined,
|
||||
{ withRef: true },
|
||||
{ section: 'metadataProvider' }
|
||||
)(MetadataProviderConnector);
|
||||
createMapStateToProps,
|
||||
mapDispatchToProps,
|
||||
undefined,
|
||||
{ withRef: true },
|
||||
{ section: 'settings.metadataProvider' }
|
||||
)(MetadataProviderConnector);
|
||||
|
|
|
@ -6,7 +6,7 @@ import { cancelTestNotification, cancelSaveNotification } from 'Store/Actions/se
|
|||
import EditNotificationModal from './EditNotificationModal';
|
||||
|
||||
function createMapDispatchToProps(dispatch, props) {
|
||||
const section = 'notifications';
|
||||
const section = 'settings.notifications';
|
||||
|
||||
return {
|
||||
dispatchClearPendingChanges() {
|
||||
|
|
|
@ -18,7 +18,7 @@ class EditDelayProfileModalConnector extends Component {
|
|||
// Listeners
|
||||
|
||||
onModalClose = () => {
|
||||
this.props.clearPendingChanges({ section: 'delayProfiles' });
|
||||
this.props.clearPendingChanges({ section: 'settings.delayProfiles' });
|
||||
this.props.onModalClose();
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ class EditLanguageProfileModalConnector extends Component {
|
|||
// Listeners
|
||||
|
||||
onModalClose = () => {
|
||||
this.props.clearPendingChanges({ section: 'languageProfiles' });
|
||||
this.props.clearPendingChanges({ section: 'settings.languageProfiles' });
|
||||
this.props.onModalClose();
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ class EditMetadataProfileModalConnector extends Component {
|
|||
// Listeners
|
||||
|
||||
onModalClose = () => {
|
||||
this.props.clearPendingChanges({ section: 'metadataProfiles' });
|
||||
this.props.clearPendingChanges({ section: 'settings.metadataProfiles' });
|
||||
this.props.onModalClose();
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ class EditQualityProfileModalConnector extends Component {
|
|||
// Listeners
|
||||
|
||||
onModalClose = () => {
|
||||
this.props.clearPendingChanges({ section: 'qualityProfiles' });
|
||||
this.props.clearPendingChanges({ section: 'settings.qualityProfiles' });
|
||||
this.props.onModalClose();
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ const mapDispatchToProps = {
|
|||
class QualityDefinitionConnector extends Component {
|
||||
|
||||
componentWillUnmount() {
|
||||
this.props.clearPendingChanges({ section: 'qualityDefinitions' });
|
||||
this.props.clearPendingChanges({ section: 'settings.qualityDefinitions' });
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
@ -78,5 +78,5 @@ export default connectSection(
|
|||
mapDispatchToProps,
|
||||
undefined,
|
||||
undefined,
|
||||
{ section: 'ui' }
|
||||
{ section: 'settings.ui' }
|
||||
)(UISettingsConnector);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue