|
|
@ -1,4 +1,5 @@
|
|
|
|
import { push } from 'connected-react-router';
|
|
|
|
import { push } from 'connected-react-router';
|
|
|
|
|
|
|
|
import _ from 'lodash';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { connect } from 'react-redux';
|
|
|
@ -49,14 +50,14 @@ class HistoryRowConnector extends Component {
|
|
|
|
// Listeners
|
|
|
|
// Listeners
|
|
|
|
|
|
|
|
|
|
|
|
onSearchPress = (query, indexerId, categories, type, limit, offset) => {
|
|
|
|
onSearchPress = (query, indexerId, categories, type, limit, offset) => {
|
|
|
|
this.props.setSearchDefault({
|
|
|
|
this.props.setSearchDefault(_.pickBy({
|
|
|
|
searchQuery: query,
|
|
|
|
searchQuery: query,
|
|
|
|
searchIndexerIds: [indexerId],
|
|
|
|
searchIndexerIds: [indexerId],
|
|
|
|
searchCategories: categories,
|
|
|
|
searchCategories: categories,
|
|
|
|
searchType: type,
|
|
|
|
searchType: type,
|
|
|
|
searchLimit: limit,
|
|
|
|
searchLimit: limit,
|
|
|
|
searchOffset: offset
|
|
|
|
searchOffset: offset
|
|
|
|
});
|
|
|
|
}));
|
|
|
|
this.props.push(`${window.Prowlarr.urlBase}/search`);
|
|
|
|
this.props.push(`${window.Prowlarr.urlBase}/search`);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|