Resolve "Dropdown actions in mini pipeline graph in mr widget don't work"
Backport of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/18976
Master and stable branch have different versions of this file, which makes it hard to pick. This backport has the same changes as !18976 (merged)
Edited by Filipa Lacerda