Commit 0bc9008e authored by Phil Hughes's avatar Phil Hughes

Fixed todos empty state when filtering

Closes #24127
parent 717b8a76
......@@ -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)
......
......@@ -83,7 +83,11 @@
.todos-all-done
= render "shared/empty_states/todos_all_done.svg"
%h4.text-center
- if todos_filter_empty?
Good job! Looks like you don't have any todos left.
- else
There are no Todos to show.
- if todos_filter_empty?
%p.text-center
Are you looking for things to do? Take a look at
= succeed "," do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment