mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
[UI Work] Misc UI Fixes and Tweaks
This commit is contained in:
parent
2a6decdc4c
commit
44cc642ad4
80 changed files with 267 additions and 349 deletions
|
@ -18,10 +18,10 @@ const albumStudioActionHandlers = {
|
|||
|
||||
let monitoringOptions = null;
|
||||
const series = [];
|
||||
const allSeries = getState().series.items;
|
||||
const allArtists = getState().series.items;
|
||||
|
||||
artistIds.forEach((id) => {
|
||||
const s = _.find(allSeries, { id });
|
||||
const s = _.find(allArtists, { id });
|
||||
const seriesToUpdate = { id };
|
||||
|
||||
if (payload.hasOwnProperty('monitored')) {
|
||||
|
|
|
@ -8,7 +8,7 @@ export const deleteArtist = artistActionHandlers[types.DELETE_ARTIST];
|
|||
export const toggleSeriesMonitored = artistActionHandlers[types.TOGGLE_ARTIST_MONITORED];
|
||||
export const toggleSeasonMonitored = artistActionHandlers[types.TOGGLE_ALBUM_MONITORED];
|
||||
|
||||
export const setSeriesValue = createAction(types.SET_ARTIST_VALUE, (payload) => {
|
||||
export const setArtistValue = createAction(types.SET_ARTIST_VALUE, (payload) => {
|
||||
return {
|
||||
section: 'series',
|
||||
...payload
|
||||
|
|
|
@ -80,7 +80,7 @@ const importArtistActionHandlers = {
|
|||
error: null,
|
||||
items: data,
|
||||
queued: false,
|
||||
selectedSeries: queued.selectedSeries || data[0]
|
||||
selectedArtist: queued.selectedArtist || data[0]
|
||||
}));
|
||||
});
|
||||
|
||||
|
@ -112,12 +112,12 @@ const importArtistActionHandlers = {
|
|||
|
||||
const allNewSeries = ids.reduce((acc, id) => {
|
||||
const item = _.find(items, { id });
|
||||
const selectedSeries = item.selectedSeries;
|
||||
const selectedArtist = item.selectedArtist;
|
||||
|
||||
// Make sure we have a selected series and
|
||||
// the same series hasn't been added yet.
|
||||
if (selectedSeries && !_.some(acc, { foreignArtistId: selectedSeries.foreignArtistId })) {
|
||||
const newSeries = getNewSeries(_.cloneDeep(selectedSeries), item);
|
||||
if (selectedArtist && !_.some(acc, { foreignArtistId: selectedArtist.foreignArtistId })) {
|
||||
const newSeries = getNewSeries(_.cloneDeep(selectedArtist), item);
|
||||
newSeries.path = item.path;
|
||||
|
||||
addedIds.push(id);
|
||||
|
|
|
@ -2,7 +2,7 @@ import { createAction } from 'redux-actions';
|
|||
import * as types from './actionTypes';
|
||||
import importArtistActionHandlers from './importArtistActionHandlers';
|
||||
|
||||
export const queueLookupSeries = importArtistActionHandlers[types.QUEUE_LOOKUP_ARTIST];
|
||||
export const queueLookupArtist = importArtistActionHandlers[types.QUEUE_LOOKUP_ARTIST];
|
||||
export const startLookupSeries = importArtistActionHandlers[types.START_LOOKUP_ARTIST];
|
||||
export const importArtist = importArtistActionHandlers[types.IMPORT_ARTIST];
|
||||
export const clearImportArtist = createAction(types.CLEAR_IMPORT_ARTIST);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue