[UI Work] Misc UI Fixes and Tweaks

This commit is contained in:
Qstick 2017-09-16 16:22:06 -04:00
commit 44cc642ad4
80 changed files with 267 additions and 349 deletions

View file

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