Skip to content

Commit

Permalink
Updated filtering and sorting items in upcoming items tab, #513
Browse files Browse the repository at this point in the history
  • Loading branch information
forough-jalili committed Jun 10, 2019
1 parent 83f0715 commit de66c68
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions src/components/UpcomingItems.vue
Original file line number Diff line number Diff line change
Expand Up @@ -189,26 +189,26 @@ export default {
{
label: 'Name',
className: 'name',
isSortingActive: this.upcomingNuggetsSortCriteria.field === 'title',
isSortingActive: this.upcomingNuggetsSortCriteria.field === 'issueTitle',
isFilteringActive: null,
field: 'title',
field: 'issueTitle',
filteringItems: null
},
{
label: 'Tempo',
className: 'tempo',
isSortingActive: this.upcomingNuggetsSortCriteria.field === 'boarding',
isSortingActive: this.upcomingNuggetsSortCriteria.field === 'issueBoarding',
isFilteringActive: null,
field: 'boarding',
filteringItems: this.itemBoardings
field: 'issueBoarding',
filteringItems: this.issueBoarding
},
{
label: 'Type',
className: 'type',
isSortingActive: this.upcomingNuggetsSortCriteria.field === 'kind',
isSortingActive: this.upcomingNuggetsSortCriteria.field === 'kissueKindnd',
isFilteringActive: null,
field: 'kind',
filteringItems: this.itemKinds
field: 'issueKind',
filteringItems: this.issueKind
},
{
label: 'Starts In',
Expand Down Expand Up @@ -245,18 +245,18 @@ export default {
{
label: 'Project',
className: 'project',
isSortingActive: this.upcomingNuggetsSortCriteria.field === 'project',
isSortingActive: this.upcomingNuggetsSortCriteria.field === 'projectTitle',
isFilteringActive: null,
field: 'project',
filteringItems: null
field: 'projectTitle',
filteringItems: this.projectTitle
},
{
label: 'Priority',
className: 'priority',
isSortingActive: this.upcomingNuggetsSortCriteria.field === 'priority',
isFilteringActive: null,
field: 'priority',
filteringItems: this.itemPriorities
filteringItems: null
},
{
label: 'Phase',
Expand All @@ -275,9 +275,8 @@ export default {
'phases',
'upcomingNuggetsSortCriteria',
'upcomingNuggetsFilters',
'itemPriorities',
'itemKinds',
'itemBoardings'
'issueKind',
'issueBoarding'
])
},
watch: {
Expand Down

0 comments on commit de66c68

Please sign in to comment.