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 @@ ...@@ -9,18 +9,19 @@
.filter-item.inline.update-issues-btn.float-left .filter-item.inline.update-issues-btn.float-left
= button_tag _('Update all'), class: "btn update-selected-issues btn-info", disabled: true = 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" = button_tag _('Cancel'), class: "btn btn-default js-bulk-update-menu-hide float-right"
.block - if params[:state] != 'merged'
.title .block
= _('Status') .title
.filter-item = _('Status')
= 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 .filter-item
%ul = 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
%li %ul
%a{ href: "#", data: { id: "reopen" } } %li
= _('Open') %a{ href: "#", data: { id: "reopen" } }
%li = _('Open')
%a{ href: "#", data: { id: "close" } } %li
= _('Closed') %a{ href: "#", data: { id: "close" } }
= _('Closed')
.block .block
.title .title
= _('Assignee') = _('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 ...@@ -37,6 +37,15 @@ RSpec.describe 'Merge requests > User mass updates', :js do
expect(page).to have_selector('.merge-request', count: 0) expect(page).to have_selector('.merge-request', count: 0)
end end
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 end
context 'assignee' do 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