New: Add Star Rating to Album table (#365)

This commit is contained in:
Qstick 2018-05-24 23:55:14 -04:00 committed by GitHub
parent 73157534e0
commit 18b29f8208
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 102 additions and 2 deletions

View file

@ -31,6 +31,11 @@ export const defaultState = {
sortDirection: sortDirections.DESCENDING,
items: [],
pendingChanges: {},
sortPredicates: {
rating: function(item) {
return item.ratings.value;
}
},
columns: [
{
@ -73,6 +78,12 @@ export const defaultState = {
isSortable: true,
isVisible: false
},
{
name: 'rating',
label: 'Rating',
isSortable: true,
isVisible: true
},
{
name: 'status',
label: 'Status',