Merge pull request #5110 from tsiegleauq/tiles-dont-do-anything

Fix motion tiles filter
This commit is contained in:
Emanuel Schütze 2019-11-04 15:45:02 +01:00 committed by GitHub
commit 8b3d0afb9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -283,7 +283,7 @@ export class MotionListComponent extends BaseListViewComponent<ViewMotion> imple
.sort((a, b) => a.weight - b.weight) .sort((a, b) => a.weight - b.weight)
.map(category => { .map(category => {
return { return {
filter: 'category', filter: 'category_id',
name: category.name, name: category.name,
condition: category.id, condition: category.id,
amountOfMotions: category.totalAmountOfMotions, amountOfMotions: category.totalAmountOfMotions,
@ -315,7 +315,7 @@ export class MotionListComponent extends BaseListViewComponent<ViewMotion> imple
this.addToTileInfo('Favorites', 'star', true, favoriteMotions); this.addToTileInfo('Favorites', 'star', true, favoriteMotions);
this.addToTileInfo('Personal notes', 'hasNotes', true, motionsWithNotes); this.addToTileInfo('Personal notes', 'hasNotes', true, motionsWithNotes);
this.addToTileInfo('No category', 'category', null, motionsWithoutCategory); this.addToTileInfo('No category', 'category_id', null, motionsWithoutCategory);
this.createCategoryTiles(Array.from(localCategories)); this.createCategoryTiles(Array.from(localCategories));