Skip to content

Commit

Permalink
fix linting issues
Browse files Browse the repository at this point in the history
Signed-off-by: grnd-alt <[email protected]>
  • Loading branch information
grnd-alt committed Jan 31, 2024
1 parent 014c613 commit dba9562
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/components/Controls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export default {
filterVisible: false,
showArchived: false,
isAddStackVisible: false,
filter: { tags: [], users: [], due: '', unassigned: false, open: false, done: false},
filter: { tags: [], users: [], due: '', unassigned: false, open: false, done: false },
showAddCardModal: false,
defaultPageTitle: false,
isNotifyPushEnabled: isNotifyPushEnabled(),
Expand All @@ -338,7 +338,7 @@ export default {
}
},
isFilterActive() {
return this.filter.tags.length !== 0 || this.filter.users.length !== 0 || this.filter.due !== '' || this.filter.open || this.filter.done;
return this.filter.tags.length !== 0 || this.filter.users.length !== 0 || this.filter.due !== '' || this.filter.open || this.filter.done
},
labelsSorted() {
return [...this.board.labels].sort((a, b) => (a.title < b.title) ? -1 : 1)
Expand Down Expand Up @@ -432,7 +432,7 @@ export default {
}
},
clearFilter() {
const filterReset = { tags: [], users: [], due: '' ,open: false, done:false}
const filterReset = { tags: [], users: [], due: '', open: false, done: false }
this.$store.dispatch('setFilter', { ...filterReset })
this.filter = filterReset
},
Expand Down
8 changes: 3 additions & 5 deletions src/store/card.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ export default {
getters: {
cardsByStack: (state, getters, rootState) => (id) => {
return state.cards.filter((card) => {
const { tags, users, due, unassigned,open, done } = rootState.filter
const { tags, users, due, unassigned, open, done } = rootState.filter

if (open && card.done !== null)
return false;
if (done && card.done == null)
return false;
if (open && card.done !== null) { return false }
if (done && card.done == null) { return false }
let allTagsMatch = true
let allUsersMatch = true

Expand Down
2 changes: 1 addition & 1 deletion src/store/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default new Vuex.Store({
searchQuery: '',
activity: [],
activityLoadMore: true,
filter: { tags: [], users: [], due: '', open:false, done: false},
filter: { tags: [], users: [], due: '', open: false, done: false },
shortcutLock: false,
},
getters: {
Expand Down

0 comments on commit dba9562

Please sign in to comment.