Skip to content

Commit

Permalink
ignore tasks found in list if list has property ignore: true
Browse files Browse the repository at this point in the history
  • Loading branch information
piascikj committed Apr 4, 2018
1 parent 70b8977 commit 47fb26e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2.4.12
- ignore tasks if list has `ignore: true` in config.lists

## 2.4.11
- Fix issue with project path when opening board

Expand Down
6 changes: 4 additions & 2 deletions lib/views/imdone-atom-view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -531,11 +531,13 @@ class ImdoneAtomView extends ScrollView
@div class: 'list-name-wrapper well', =>
@div class: 'list-name', 'data-list': list.name, title: "I don't like this name", =>
@raw list.name

if (tasks.length < 1)
@a href: '#', title: "delete #{list.name}", class: 'delete-list', "data-list": list.name, =>
@span class:'icon icon-trashcan'
@ol class: 'tasks', "data-list":"#{list.name}", =>
@ol class: 'tasks', "data-list":"#{list.name}"
if (list.ignore)
@div class:'ignored-list-message text-center', =>
@raw "Cards dropped here will be ignored by imdone."
$tasks = $list.find('.tasks')
$tasks.append(self.getTask task) for task in tasks
$list
Expand Down

0 comments on commit 47fb26e

Please sign in to comment.