mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
[UI Work] Artist Detail Page, Album Studio, Wanted, NavSearch, Rename
This commit is contained in:
parent
456ead09da
commit
0054226307
93 changed files with 590 additions and 603 deletions
|
@ -59,10 +59,10 @@ export const TOGGLE_ARTIST_MONITORED = 'TOGGLE_ARTIST_MONITORED';
|
|||
export const TOGGLE_ALBUM_MONITORED = 'TOGGLE_ALBUM_MONITORED';
|
||||
|
||||
//
|
||||
// Series Editor
|
||||
// Artist Editor
|
||||
|
||||
export const SET_SERIES_EDITOR_SORT = 'SET_SERIES_EDITOR_SORT';
|
||||
export const SET_SERIES_EDITOR_FILTER = 'SET_SERIES_EDITOR_FILTER';
|
||||
export const SET_ARTIST_EDITOR_SORT = 'SET_ARTIST_EDITOR_SORT';
|
||||
export const SET_ARTIST_EDITOR_FILTER = 'SET_ARTIST_EDITOR_FILTER';
|
||||
export const SAVE_ARTIST_EDITOR = 'SAVE_ARTIST_EDITOR';
|
||||
export const BULK_DELETE_ARTIST = 'BULK_DELETE_ARTIST';
|
||||
|
||||
|
|
|
@ -3,11 +3,11 @@ import $ from 'jquery';
|
|||
import getMonitoringOptions from 'Utilities/Series/getMonitoringOptions';
|
||||
import * as types from './actionTypes';
|
||||
import { set } from './baseActions';
|
||||
import { fetchArtist } from './seriesActions';
|
||||
import { fetchArtist } from './artistActions';
|
||||
|
||||
const section = 'seasonPass';
|
||||
const section = 'albumStudio';
|
||||
|
||||
const seasonPassActionHandlers = {
|
||||
const albumStudioActionHandlers = {
|
||||
[types.SAVE_SEASON_PASS]: function(payload) {
|
||||
return function(dispatch, getState) {
|
||||
const {
|
||||
|
@ -50,7 +50,7 @@ const seasonPassActionHandlers = {
|
|||
}));
|
||||
|
||||
const promise = $.ajax({
|
||||
url: '/seasonPass',
|
||||
url: '/albumStudio',
|
||||
method: 'POST',
|
||||
data: JSON.stringify({
|
||||
series,
|
||||
|
@ -80,4 +80,4 @@ const seasonPassActionHandlers = {
|
|||
}
|
||||
};
|
||||
|
||||
export default seasonPassActionHandlers;
|
||||
export default albumStudioActionHandlers;
|
7
frontend/src/Store/Actions/albumStudioActions.js
Normal file
7
frontend/src/Store/Actions/albumStudioActions.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
import { createAction } from 'redux-actions';
|
||||
import * as types from './actionTypes';
|
||||
import albumStudioActionHandlers from './albumStudioActionHandlers';
|
||||
|
||||
export const setAlbumStudioSort = createAction(types.SET_SEASON_PASS_SORT);
|
||||
export const setAlbumStudioFilter = createAction(types.SET_SEASON_PASS_FILTER);
|
||||
export const saveAlbumStudio = albumStudioActionHandlers[types.SAVE_SEASON_PASS];
|
|
@ -3,9 +3,9 @@ import { batchActions } from 'redux-batched-actions';
|
|||
import * as types from './actionTypes';
|
||||
import { set, updateItem } from './baseActions';
|
||||
|
||||
const section = 'seriesEditor';
|
||||
const section = 'artistEditor';
|
||||
|
||||
const seriesEditorActionHandlers = {
|
||||
const artistEditorActionHandlers = {
|
||||
[types.SAVE_ARTIST_EDITOR]: function(payload) {
|
||||
return function(dispatch, getState) {
|
||||
dispatch(set({
|
||||
|
@ -14,7 +14,7 @@ const seriesEditorActionHandlers = {
|
|||
}));
|
||||
|
||||
const promise = $.ajax({
|
||||
url: '/series/editor',
|
||||
url: '/artist/editor',
|
||||
method: 'PUT',
|
||||
data: JSON.stringify(payload),
|
||||
dataType: 'json'
|
||||
|
@ -56,7 +56,7 @@ const seriesEditorActionHandlers = {
|
|||
}));
|
||||
|
||||
const promise = $.ajax({
|
||||
url: '/series/editor',
|
||||
url: '/artist/editor',
|
||||
method: 'DELETE',
|
||||
data: JSON.stringify(payload),
|
||||
dataType: 'json'
|
||||
|
@ -83,4 +83,4 @@ const seriesEditorActionHandlers = {
|
|||
}
|
||||
};
|
||||
|
||||
export default seriesEditorActionHandlers;
|
||||
export default artistEditorActionHandlers;
|
8
frontend/src/Store/Actions/artistEditorActions.js
Normal file
8
frontend/src/Store/Actions/artistEditorActions.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
import { createAction } from 'redux-actions';
|
||||
import * as types from './actionTypes';
|
||||
import artistEditorActionHandlers from './artistEditorActionHandlers';
|
||||
|
||||
export const setArtistEditorSort = createAction(types.SET_ARTIST_EDITOR_SORT);
|
||||
export const setArtistEditorFilter = createAction(types.SET_ARTIST_EDITOR_FILTER);
|
||||
export const saveArtistEditor = artistEditorActionHandlers[types.SAVE_ARTIST_EDITOR];
|
||||
export const bulkDeleteArtist = artistEditorActionHandlers[types.BULK_DELETE_ARTIST];
|
|
@ -116,7 +116,7 @@ const importArtistActionHandlers = {
|
|||
|
||||
// Make sure we have a selected series and
|
||||
// the same series hasn't been added yet.
|
||||
if (selectedSeries && !_.some(acc, { tvdbId: selectedSeries.tvdbId })) {
|
||||
if (selectedSeries && !_.some(acc, { foreignArtistId: selectedSeries.foreignArtistId })) {
|
||||
const newSeries = getNewSeries(_.cloneDeep(selectedSeries), item);
|
||||
newSeries.path = item.path;
|
||||
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
import { createAction } from 'redux-actions';
|
||||
import * as types from './actionTypes';
|
||||
import seasonPassActionHandlers from './seasonPassActionHandlers';
|
||||
|
||||
export const setSeasonPassSort = createAction(types.SET_SEASON_PASS_SORT);
|
||||
export const setSeasonPassFilter = createAction(types.SET_SEASON_PASS_FILTER);
|
||||
export const saveSeasonPass = seasonPassActionHandlers[types.SAVE_SEASON_PASS];
|
|
@ -1,8 +0,0 @@
|
|||
import { createAction } from 'redux-actions';
|
||||
import * as types from './actionTypes';
|
||||
import seriesEditorActionHandlers from './seriesEditorActionHandlers';
|
||||
|
||||
export const setSeriesEditorSort = createAction(types.SET_SERIES_EDITOR_SORT);
|
||||
export const setSeriesEditorFilter = createAction(types.SET_SERIES_EDITOR_FILTER);
|
||||
export const saveArtistEditor = seriesEditorActionHandlers[types.SAVE_ARTIST_EDITOR];
|
||||
export const bulkDeleteArtist = seriesEditorActionHandlers[types.BULK_DELETE_ARTIST];
|
Loading…
Add table
Add a link
Reference in a new issue