Skip to content

Dont show remove source branch checkbox when user cannot remove the branch

What does this MR do?

Stops showing the remove source branch checkbox when the user cant actually remove the source branch.

There are a few different logic paths:

  • User can merge but can't remove source branch & the source branch is set for removal. In this case the user is shown the text Removes source branch
  • User can't merge & the source branch is set for removal. In this case the user is shown the text Removes source branch
  • User can merge & can remove source branch. In this case the user is shown the checkbox like normal.

This logic also applies for the edit screen of a merge request.

Screenshots (if relevant)

Screen_Shot_2018-03-08_at_13.04.09

Screen_Shot_2018-03-08_at_13.03.57

What are the relevant issue numbers?

Closes #33264 (closed)

Merge request reports