|
|
|
@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
|
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
|
import { createSelector } from 'reselect';
|
|
|
|
|
import { saveIndexer, setIndexerFieldValue, setIndexerValue, testIndexer } from 'Store/Actions/settingsActions';
|
|
|
|
|
import { saveIndexer, setIndexerFieldValue, setIndexerValue, testIndexer, toggleAdvancedSettings } from 'Store/Actions/settingsActions';
|
|
|
|
|
import createProviderSettingsSelector from 'Store/Selectors/createProviderSettingsSelector';
|
|
|
|
|
import EditIndexerModalContent from './EditIndexerModalContent';
|
|
|
|
|
|
|
|
|
@ -23,7 +23,8 @@ const mapDispatchToProps = {
|
|
|
|
|
setIndexerValue,
|
|
|
|
|
setIndexerFieldValue,
|
|
|
|
|
saveIndexer,
|
|
|
|
|
testIndexer
|
|
|
|
|
testIndexer,
|
|
|
|
|
toggleAdvancedSettings
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class EditIndexerModalContentConnector extends Component {
|
|
|
|
@ -56,6 +57,10 @@ class EditIndexerModalContentConnector extends Component {
|
|
|
|
|
this.props.testIndexer({ id: this.props.id });
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
onAdvancedSettingsPress = () => {
|
|
|
|
|
this.props.toggleAdvancedSettings();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// Render
|
|
|
|
|
|
|
|
|
@ -65,6 +70,7 @@ class EditIndexerModalContentConnector extends Component {
|
|
|
|
|
{...this.props}
|
|
|
|
|
onSavePress={this.onSavePress}
|
|
|
|
|
onTestPress={this.onTestPress}
|
|
|
|
|
onAdvancedSettingsPress={this.onAdvancedSettingsPress}
|
|
|
|
|
onInputChange={this.onInputChange}
|
|
|
|
|
onFieldChange={this.onFieldChange}
|
|
|
|
|
/>
|
|
|
|
@ -80,6 +86,7 @@ EditIndexerModalContentConnector.propTypes = {
|
|
|
|
|
item: PropTypes.object.isRequired,
|
|
|
|
|
setIndexerValue: PropTypes.func.isRequired,
|
|
|
|
|
setIndexerFieldValue: PropTypes.func.isRequired,
|
|
|
|
|
toggleAdvancedSettings: PropTypes.func.isRequired,
|
|
|
|
|
saveIndexer: PropTypes.func.isRequired,
|
|
|
|
|
testIndexer: PropTypes.func.isRequired,
|
|
|
|
|
onModalClose: PropTypes.func.isRequired
|
|
|
|
|