[UI] Add Banner View to Artist Index

This commit is contained in:
Qstick 2017-09-17 02:24:15 -04:00
parent 07b37c1575
commit 25eef250a4
22 changed files with 1496 additions and 1 deletions

View file

@ -54,6 +54,7 @@ export const SET_ARTIST_FILTER = 'SET_ARTIST_FILTER';
export const SET_ARTIST_VIEW = 'SET_ARTIST_VIEW';
export const SET_ARTIST_TABLE_OPTION = 'SET_ARTIST_TABLE_OPTION';
export const SET_ARTIST_POSTER_OPTION = 'SET_ARTIST_POSTER_OPTION';
export const SET_ARTIST_BANNER_OPTION = 'SET_ARTIST_BANNER_OPTION';
export const TOGGLE_ARTIST_MONITORED = 'TOGGLE_ARTIST_MONITORED';
export const TOGGLE_ALBUM_MONITORED = 'TOGGLE_ALBUM_MONITORED';

View file

@ -6,3 +6,4 @@ export const setArtistFilter = createAction(types.SET_ARTIST_FILTER);
export const setArtistView = createAction(types.SET_ARTIST_VIEW);
export const setArtistTableOption = createAction(types.SET_ARTIST_TABLE_OPTION);
export const setArtistPosterOption = createAction(types.SET_ARTIST_POSTER_OPTION);
export const setArtistBannerOption = createAction(types.SET_ARTIST_BANNER_OPTION);

View file

@ -24,6 +24,13 @@ export const defaultState = {
showQualityProfile: false
},
bannerOptions: {
detailedProgressBar: false,
size: 'large',
showTitle: false,
showQualityProfile: false
},
columns: [
{
name: 'status',
@ -160,7 +167,8 @@ export const persistState = [
'artistIndex.filterType',
'artistIndex.view',
'artistIndex.columns',
'artistIndex.posterOptions'
'artistIndex.posterOptions',
'artistIndex.bannerOptions'
];
const reducerSection = 'artistIndex';
@ -188,6 +196,18 @@ const artistIndexReducers = handleActions({
...payload
}
};
},
[types.SET_ARTIST_BANNER_OPTION]: function(state, { payload }) {
const bannerOptions = state.bannerOptions;
return {
...state,
bannerOptions: {
...bannerOptions,
...payload
}
};
}
}, defaultState);