Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2016-10-19 20:39:31 +0300
committerRobert Speicher <robert@gitlab.com>2016-10-19 20:39:31 +0300
commit880530dab4e8f124f4618e3f427de0923d1091b4 (patch)
treea5b828e858fe5e33991f778043393fa845012131 /app/helpers
parent6d709417ead63780c7f05da0e9f9bed640ac01e5 (diff)
parent443619300d067a83cbd53872635c2c3cfd1f6655 (diff)
Merge branch '22457-reset-filters-button-should-be-invisible-when-no-filters-are-active' into 'master'
`Reset filters` link should only be visible when filters are active ## Why was this MR needed? `Reset filters` link is always visible. Closes #22457 See merge request !6497
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/issuables_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/issuables_helper.rb b/app/helpers/issuables_helper.rb
index 692fadd505f..03b2db1bc91 100644
--- a/app/helpers/issuables_helper.rb
+++ b/app/helpers/issuables_helper.rb
@@ -124,6 +124,10 @@ module IssuablesHelper
end
end
+ def issuable_filters_present
+ params[:search] || params[:author_id] || params[:assignee_id] || params[:milestone_title] || params[:label_name]
+ end
+
def issuables_count_for_state(issuable_type, state)
issuables_finder = public_send("#{issuable_type}_finder")
issuables_finder.params[:state] = state