mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
[UI Work] Add Artist, Import Artist, Calendar
This commit is contained in:
@@ -13,7 +13,7 @@ function ErrorPage(props) {
|
||||
uiSettingsError
|
||||
} = props;
|
||||
|
||||
let errorMessage = 'Failed to load Sonarr';
|
||||
let errorMessage = 'Failed to load Lidarr';
|
||||
|
||||
if (!isLocalStorageSupported) {
|
||||
errorMessage = 'Local Storage is not supported or disabled. A plugin or private browsing may have disabled it.';
|
||||
|
||||
@@ -111,7 +111,7 @@ class SeriesSearchInput extends Component {
|
||||
} = this._autosuggest.state;
|
||||
|
||||
if (!suggestions.length || highlightedSectionIndex) {
|
||||
this.props.onGoToAddNewSeries(value);
|
||||
this.props.onGoToAddNewArtist(value);
|
||||
this._autosuggest.input.blur();
|
||||
|
||||
return;
|
||||
@@ -153,7 +153,7 @@ class SeriesSearchInput extends Component {
|
||||
|
||||
onSuggestionSelected = (event, { suggestion, sectionIndex }) => {
|
||||
if (suggestion.type === ADD_NEW_TYPE) {
|
||||
this.props.onGoToAddNewSeries(this.state.value);
|
||||
this.props.onGoToAddNewArtist(this.state.value);
|
||||
} else {
|
||||
this.goToSeries(suggestion);
|
||||
}
|
||||
@@ -243,7 +243,7 @@ class SeriesSearchInput extends Component {
|
||||
SeriesSearchInput.propTypes = {
|
||||
series: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||
onGoToSeries: PropTypes.func.isRequired,
|
||||
onGoToAddNewSeries: PropTypes.func.isRequired,
|
||||
onGoToAddNewArtist: PropTypes.func.isRequired,
|
||||
bindShortcut: PropTypes.func.isRequired
|
||||
};
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ function createMapDispatchToProps(dispatch, props) {
|
||||
dispatch(push(`${window.Sonarr.urlBase}/series/${titleSlug}`));
|
||||
},
|
||||
|
||||
onGoToAddNewSeries(query) {
|
||||
onGoToAddNewArtist(query) {
|
||||
dispatch(push(`${window.Sonarr.urlBase}/add/new?term=${encodeURIComponent(query)}`));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user