Renames in Frontend

This commit is contained in:
Qstick
2020-05-15 23:32:52 -04:00
committed by ta264
parent ee4e44b81a
commit ee43ccf620
387 changed files with 4036 additions and 4364 deletions

View File

@@ -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
}

View File

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

View File

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

View File

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

View File

@@ -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}