Skip to content
Snippets Groups Projects
Commit c674c119 authored by Phil Hughes's avatar Phil Hughes
Browse files

Correctly shows close button on merge requests

Closes #19403
parent ab81ea1e
No related branches found
No related tags found
1 merge request!5036Correctly shows close button on merge requests
Pipeline #
Loading
Loading
@@ -102,7 +102,7 @@ module IssuesHelper
end
 
def issue_button_visibility(issue, closed)
return 'hidden' if issue.closed? == closed
return 'hidden' if issue.closed? == closed || (issue.try(:merged?) == closed && !issue.closed?)
end
 
def merge_requests_sentence(merge_requests)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment