mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-17 21:25:39 -04:00
Renames in Frontend
This commit is contained in:
@@ -104,7 +104,7 @@ function InteractiveSearch(props) {
|
||||
{
|
||||
!isFetching && error ?
|
||||
<div>
|
||||
Unable to load results for this album search. Try again later
|
||||
Unable to load results for this book search. Try again later
|
||||
</div> :
|
||||
null
|
||||
}
|
||||
|
||||
@@ -34,9 +34,9 @@ function createMapDispatchToProps(dispatch, props) {
|
||||
},
|
||||
|
||||
onFilterSelect(selectedFilterKey) {
|
||||
const action = props.type === 'album' ?
|
||||
releaseActions.setAlbumReleasesFilter :
|
||||
releaseActions.setArtistReleasesFilter;
|
||||
const action = props.type === 'book' ?
|
||||
releaseActions.setBookReleasesFilter :
|
||||
releaseActions.setAuthorReleasesFilter;
|
||||
|
||||
dispatch(action({ selectedFilterKey }));
|
||||
},
|
||||
|
||||
@@ -19,9 +19,9 @@ function createMapStateToProps(appState, { type }) {
|
||||
function createMapDispatchToProps(dispatch, props) {
|
||||
return {
|
||||
onFilterSelect(selectedFilterKey) {
|
||||
const action = props.type === 'album' ?
|
||||
releaseActions.setAlbumReleasesFilter :
|
||||
releaseActions.setArtistReleasesFilter;
|
||||
const action = props.type === 'book' ?
|
||||
releaseActions.setBookReleasesFilter :
|
||||
releaseActions.setAuthorReleasesFilter;
|
||||
dispatch(action({ selectedFilterKey }));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { connect } from 'react-redux';
|
||||
import { createSelector } from 'reselect';
|
||||
import { setAlbumReleasesFilter, setArtistReleasesFilter } from 'Store/Actions/releaseActions';
|
||||
import { setBookReleasesFilter, setAuthorReleasesFilter } from 'Store/Actions/releaseActions';
|
||||
import FilterModal from 'Components/Filter/FilterModal';
|
||||
|
||||
function createMapStateToProps() {
|
||||
@@ -20,9 +20,9 @@ function createMapStateToProps() {
|
||||
function createMapDispatchToProps(dispatch, props) {
|
||||
return {
|
||||
dispatchSetFilter(payload) {
|
||||
const action = props.type === 'album' ?
|
||||
setAlbumReleasesFilter:
|
||||
setArtistReleasesFilter;
|
||||
const action = props.type === 'book' ?
|
||||
setBookReleasesFilter:
|
||||
setAuthorReleasesFilter;
|
||||
|
||||
dispatch(action(payload));
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ import ConfirmModal from 'Components/Modal/ConfirmModal';
|
||||
import TableRow from 'Components/Table/TableRow';
|
||||
import TableRowCell from 'Components/Table/Cells/TableRowCell';
|
||||
import Popover from 'Components/Tooltip/Popover';
|
||||
import TrackQuality from 'Album/TrackQuality';
|
||||
import BookQuality from 'Book/BookQuality';
|
||||
import ProtocolLabel from 'Activity/Queue/ProtocolLabel';
|
||||
import Peers from './Peers';
|
||||
import styles from './InteractiveSearchRow.css';
|
||||
@@ -161,7 +161,7 @@ class InteractiveSearchRow extends Component {
|
||||
</TableRowCell>
|
||||
|
||||
<TableRowCell className={styles.quality}>
|
||||
<TrackQuality quality={quality} />
|
||||
<BookQuality quality={quality} />
|
||||
</TableRowCell>
|
||||
|
||||
<TableRowCell className={styles.preferredWordScore}>
|
||||
@@ -214,7 +214,7 @@ class InteractiveSearchRow extends Component {
|
||||
isOpen={this.state.isConfirmGrabModalOpen}
|
||||
kind={kinds.WARNING}
|
||||
title="Grab Release"
|
||||
message={`Readarr was unable to determine which artist and album this release was for. Readarr may be unable to automatically import this release. Do you want to grab '${title}'?`}
|
||||
message={`Readarr was unable to determine which author and book this release was for. Readarr may be unable to automatically import this release. Do you want to grab '${title}'?`}
|
||||
confirmLabel="Grab"
|
||||
onConfirm={this.onGrabConfirm}
|
||||
onCancel={this.onGrabCancel}
|
||||
|
||||
Reference in New Issue
Block a user