diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-04-19 17:38:54 +0100 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-04-19 17:38:54 +0100 |
commit | c539480d55ce1114aba189fec01b403ec1499f2e (patch) | |
tree | da4abfae825e9c9ff027540bbf7c8156ae5c5bc4 /lib | |
parent | c188841f3ce8c944fc86c3ba7f16a87d1be843be (diff) | |
parent | 29ddc15f8d9b094bb7052875f7728ee48f7ad06b (diff) | |
download | gitlab-ce-environments-vue-2.tar.gz |
Merge branch 'master' into environments-vue-2environments-vue-2
* master:
Remove node modules cache because we already use artifacts
Added and updated droplab docs
Display issuable state only in notes and issuable description
Use refs instead of query the DOM
Remove unused argument
Only destroy the component's tooltip
Fixed project & group icons not being clickable
Destroy tooltip in async buttons and tooltips
Diffstat (limited to 'lib')
-rw-r--r-- | lib/banzai/filter/issuable_state_filter.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/banzai/filter/issuable_state_filter.rb b/lib/banzai/filter/issuable_state_filter.rb index 0b2b8bd7f4d..1a9d03beb51 100644 --- a/lib/banzai/filter/issuable_state_filter.rb +++ b/lib/banzai/filter/issuable_state_filter.rb @@ -9,6 +9,8 @@ module Banzai VISIBLE_STATES = %w(closed merged).freeze def call + return doc unless context[:issuable_state_filter_enabled] + extractor = Banzai::IssuableExtractor.new(project, current_user) issuables = extractor.extract([doc]) |