mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-04 16:28:50 +01:00
Keep hidden projects from showing up as stalled, since they're likely hidden for a reason.
This commit is contained in:
parent
70f06bd76e
commit
48de4b1b00
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ class Project < ActiveRecord::Base
|
|||
|
||||
def stalled?
|
||||
# stalled is active/hidden project with no active todos
|
||||
return false if self.completed?
|
||||
return false if self.completed? || self.hidden?
|
||||
return self.todos.deferred_or_blocked.empty? && self.todos.not_deferred_or_blocked.empty?
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue