|
|
|
@ -3,6 +3,7 @@ import React, { Component } from 'react';
|
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
|
import { createSelector } from 'reselect';
|
|
|
|
|
import { saveIndexer, setIndexerFieldValue, setIndexerValue, testIndexer } from 'Store/Actions/indexerActions';
|
|
|
|
|
import { toggleAdvancedSettings } from 'Store/Actions/settingsActions';
|
|
|
|
|
import createIndexerSchemaSelector from 'Store/Selectors/createIndexerSchemaSelector';
|
|
|
|
|
import EditIndexerModalContent from './EditIndexerModalContent';
|
|
|
|
|
|
|
|
|
@ -23,7 +24,8 @@ const mapDispatchToProps = {
|
|
|
|
|
setIndexerValue,
|
|
|
|
|
setIndexerFieldValue,
|
|
|
|
|
saveIndexer,
|
|
|
|
|
testIndexer
|
|
|
|
|
testIndexer,
|
|
|
|
|
toggleAdvancedSettings
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class EditIndexerModalContentConnector extends Component {
|
|
|
|
@ -56,6 +58,11 @@ class EditIndexerModalContentConnector extends Component {
|
|
|
|
|
this.props.testIndexer({ id: this.props.id });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onAdvancedSettingsPress = () => {
|
|
|
|
|
console.log('settings');
|
|
|
|
|
this.props.toggleAdvancedSettings();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// Render
|
|
|
|
|
|
|
|
|
@ -65,6 +72,7 @@ class EditIndexerModalContentConnector extends Component {
|
|
|
|
|
{...this.props}
|
|
|
|
|
onSavePress={this.onSavePress}
|
|
|
|
|
onTestPress={this.onTestPress}
|
|
|
|
|
onAdvancedSettingsPress={this.onAdvancedSettingsPress}
|
|
|
|
|
onInputChange={this.onInputChange}
|
|
|
|
|
onFieldChange={this.onFieldChange}
|
|
|
|
|
/>
|
|
|
|
@ -80,6 +88,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
|
|
|
|
|