summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-11-07 16:12:05 +0000
committerPhil Hughes <me@iamphill.com>2016-11-07 17:27:17 +0000
commit0bc9008ef62277094534711238894b4e43aca7b0 (patch)
tree801c1d9077afd74169d03c91681ff49323f61aff /app/helpers
parent717b8a769245d5255adc70c0cac78fa148b38778 (diff)
downloadgitlab-ce-0bc9008ef62277094534711238894b4e43aca7b0.tar.gz
Fixed todos empty state when filteringtodos-filter-empty-state
Closes #24127
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/todos_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/todos_helper.rb b/app/helpers/todos_helper.rb
index a9db8bb2b82..a75a03b16d2 100644
--- a/app/helpers/todos_helper.rb
+++ b/app/helpers/todos_helper.rb
@@ -61,6 +61,10 @@ module TodosHelper
}
end
+ def todos_filter_empty?
+ todos_filter_params.all? {|key, value| value.nil?}
+ end
+
def todos_filter_path(options = {})
without = options.delete(:without)