Fix edit in pipeline editor button not showing on ci file on file navigation

What does this MR do and why?

Fix Edit in pipeline editor button not showing on ci file on file navigation and only showing after full page reload...

Additionally once Edit in pipeline editor button is shown on ci file, it keeps showing up on other files as well until page is refreshed.

References

#592406 (closed)

Screenshots or screen recordings

Before After

How to set up and validate locally

  1. Checkout this branch and run gdk locally
  2. Go to any project that has CI pipeline file gitlab-ci.yml
  3. Open repository file tree Code > Repository
  4. Click on the gitlab-ci.yml file from file tree
  5. Once it's opened, click Edit button and notice there is Edit in pipeline editor button
  6. Previously user needed to reload the page to see this button
  7. Navigate to other files by clicking on them from file tree and trying clicking Edit button
  8. Notice the Edit in pipeline editor button is not there anymore
  9. Previously button was still visible on non ci files until page reload
Edited by Rinku C

Merge request reports

Loading