From 8c31d39b3d6b168b98a8e867c7efaa4e9a44ab40 Mon Sep 17 00:00:00 2001 From: Qstick Date: Tue, 31 Oct 2017 23:43:40 -0400 Subject: [PATCH] Add Album Type to Wanted and Cutoff Tab Table --- frontend/src/Store/Reducers/wantedReducers.js | 12 ++++++++++++ frontend/src/Wanted/CutoffUnmet/CutoffUnmetRow.js | 10 ++++++++++ frontend/src/Wanted/Missing/MissingRow.js | 10 ++++++++++ 3 files changed, 32 insertions(+) diff --git a/frontend/src/Store/Reducers/wantedReducers.js b/frontend/src/Store/Reducers/wantedReducers.js index c126901c2..de6f9f211 100644 --- a/frontend/src/Store/Reducers/wantedReducers.js +++ b/frontend/src/Store/Reducers/wantedReducers.js @@ -38,6 +38,12 @@ export const defaultState = { label: 'Album Title', isVisible: true }, + { + name: 'albumType', + label: 'Album Type', + isSortable: true, + isVisible: true + }, { name: 'releaseDate', label: 'Release Date', @@ -86,6 +92,12 @@ export const defaultState = { label: 'Album Title', isVisible: true }, + { + name: 'albumType', + label: 'Album Type', + isSortable: true, + isVisible: true + }, { name: 'releaseDate', label: 'Release Date', diff --git a/frontend/src/Wanted/CutoffUnmet/CutoffUnmetRow.js b/frontend/src/Wanted/CutoffUnmet/CutoffUnmetRow.js index 1d224eb8e..20baba492 100644 --- a/frontend/src/Wanted/CutoffUnmet/CutoffUnmetRow.js +++ b/frontend/src/Wanted/CutoffUnmet/CutoffUnmetRow.js @@ -18,6 +18,7 @@ function CutoffUnmetRow(props) { trackFileId, artist, releaseDate, + albumType, title, isSelected, columns, @@ -68,6 +69,14 @@ function CutoffUnmetRow(props) { ); } + if (name === 'albumType') { + return ( + + {albumType} + + ); + } + if (name === 'releaseDate') { return ( + {albumType} + + ); + } + if (name === 'releaseDate') { return (