[UI Work] Add Artist, Import Artist, Calendar

This commit is contained in:
Qstick
2017-09-07 23:09:52 -04:00
parent a747c5f135
commit 77f1d2e64c
109 changed files with 891 additions and 1082 deletions
+1 -1
View File
@@ -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)}`));
}
};