UI Action Handler Changes, Misc Fixes

This commit is contained in:
Qstick 2017-11-26 15:09:45 -05:00
commit cd5b658196
193 changed files with 6992 additions and 6341 deletions

View file

@ -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() {

View file

@ -88,5 +88,5 @@ export default connectSection(
mapDispatchToProps,
undefined,
{ withRef: true },
{ section: 'downloadClientOptions' }
{ section: 'settings.downloadClientOptions' }
)(DownloadClientOptionsConnector);

View file

@ -18,7 +18,7 @@ class EditRemotePathMappingModalConnector extends Component {
// Listeners
onModalClose = () => {
this.props.clearPendingChanges({ section: 'remotePathMappings' });
this.props.clearPendingChanges({ section: 'settings.remotePathMappings' });
this.props.onModalClose();
}

View file

@ -113,5 +113,5 @@ export default connectSection(
mapDispatchToProps,
undefined,
undefined,
{ section: 'general' }
{ section: 'settings.general' }
)(GeneralSettingsConnector);

View file

@ -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() {

View file

@ -88,5 +88,5 @@ export default connectSection(
mapDispatchToProps,
undefined,
{ withRef: true },
{ section: 'indexerOptions' }
{ section: 'settings.indexerOptions' }
)(IndexerOptionsConnector);

View file

@ -14,7 +14,7 @@ class EditRestrictionModalConnector extends Component {
// Listeners
onModalClose = () => {
this.props.clearPendingChanges({ section: 'restrictions' });
this.props.clearPendingChanges({ section: 'settings.restrictions' });
this.props.onModalClose();
}

View file

@ -87,5 +87,5 @@ export default connectSection(
mapDispatchToProps,
undefined,
undefined,
{ section: 'mediaManagement' }
{ section: 'settings.mediaManagement' }
)(MediaManagementConnector);

View file

@ -98,5 +98,5 @@ export default connectSection(
mapDispatchToProps,
undefined,
undefined,
{ section: 'naming' }
{ section: 'settings.naming' }
)(NamingConnector);

View file

@ -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() {

View file

@ -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);

View file

@ -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() {

View file

@ -18,7 +18,7 @@ class EditDelayProfileModalConnector extends Component {
// Listeners
onModalClose = () => {
this.props.clearPendingChanges({ section: 'delayProfiles' });
this.props.clearPendingChanges({ section: 'settings.delayProfiles' });
this.props.onModalClose();
}

View file

@ -18,7 +18,7 @@ class EditLanguageProfileModalConnector extends Component {
// Listeners
onModalClose = () => {
this.props.clearPendingChanges({ section: 'languageProfiles' });
this.props.clearPendingChanges({ section: 'settings.languageProfiles' });
this.props.onModalClose();
}

View file

@ -18,7 +18,7 @@ class EditMetadataProfileModalConnector extends Component {
// Listeners
onModalClose = () => {
this.props.clearPendingChanges({ section: 'metadataProfiles' });
this.props.clearPendingChanges({ section: 'settings.metadataProfiles' });
this.props.onModalClose();
}

View file

@ -18,7 +18,7 @@ class EditQualityProfileModalConnector extends Component {
// Listeners
onModalClose = () => {
this.props.clearPendingChanges({ section: 'qualityProfiles' });
this.props.clearPendingChanges({ section: 'settings.qualityProfiles' });
this.props.onModalClose();
}

View file

@ -19,7 +19,7 @@ const mapDispatchToProps = {
class QualityDefinitionConnector extends Component {
componentWillUnmount() {
this.props.clearPendingChanges({ section: 'qualityDefinitions' });
this.props.clearPendingChanges({ section: 'settings.qualityDefinitions' });
}
//

View file

@ -78,5 +78,5 @@ export default connectSection(
mapDispatchToProps,
undefined,
undefined,
{ section: 'ui' }
{ section: 'settings.ui' }
)(UISettingsConnector);