Commit ddee7859 authored by Samantha Ming's avatar Samantha Ming

Remove status dropdown in merged tab

Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/20033
parent bb8f2445
......@@ -9,18 +9,19 @@
.filter-item.inline.update-issues-btn.float-left
= button_tag _('Update all'), class: "btn update-selected-issues btn-info", disabled: true
= button_tag _('Cancel'), class: "btn btn-default js-bulk-update-menu-hide float-right"
.block
.title
= _('Status')
.filter-item
= dropdown_tag(_("Select status"), options: { toggle_class: "js-issue-status", title: _("Change status"), dropdown_class: "dropdown-menu-status dropdown-menu-selectable", data: { field_name: "update[state_event]", default_label: _("Status") } } ) do
%ul
%li
%a{ href: "#", data: { id: "reopen" } }
= _('Open')
%li
%a{ href: "#", data: { id: "close" } }
= _('Closed')
- if params[:state] != 'merged'
.block
.title
= _('Status')
.filter-item
= dropdown_tag(_("Select status"), options: { toggle_class: "js-issue-status", title: _("Change status"), dropdown_class: "dropdown-menu-status dropdown-menu-selectable", data: { field_name: "update[state_event]", default_label: _("Status") } } ) do
%ul
%li
%a{ href: "#", data: { id: "reopen" } }
= _('Open')
%li
%a{ href: "#", data: { id: "close" } }
= _('Closed')
.block
.title
= _('Assignee')
......
---
title: Remove status dropdown in merged tab
merge_request: 37544
author:
type: fixed
......@@ -37,6 +37,15 @@ RSpec.describe 'Merge requests > User mass updates', :js do
expect(page).to have_selector('.merge-request', count: 0)
end
end
it 'does not exist in merged state' do
merge_request.close
visit project_merge_requests_path(project, state: 'merged')
click_button 'Edit merge requests'
expect(page).not_to have_css('.js-issue-status')
end
end
context 'assignee' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment