Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions src/api/app/views/webui/request/_request_header.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
%small
= render BsRequestPriorityBadgeComponent.new(priority: bs_request.priority, css_class: 'ms-2', overview: true)
= render badge_state
%span.ms-2
= render ReportsNoticeComponent.new(reportable: bs_request, user: User.session)
-# Maintenance Incident Request
- if bs_request.maintenance_incident_request?
%span.badge.bg-maintenance.text-light.ms-2 Maintenance Incident
%span.ms-2
= render ReportsNoticeComponent.new(reportable: bs_request, user: User.session)

-# watch button
- if User.session
Expand Down Expand Up @@ -59,11 +62,6 @@
%mark.text-dark.alert-warning.ps-2.pe-2.text-nowrap{ title: bs_request.accept_at }
auto accepted
= render TimeComponent.new(time: bs_request.accept_at)
-# Maintenance Incident Request
- if bs_request.maintenance_incident_request?
%li
This is a
%mark.text-light.bg-maintenance.text-nowrap.text Maintenance Incident
-# Maintenance Release Request
- if bs_request.maintenance_release_request?
%li
Expand Down
4 changes: 2 additions & 2 deletions src/api/spec/features/beta/webui/maintenance_workflow_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
end

it 'displays information on type of request' do
expect(page).to have_text('This is a Maintenance Incident')
expect(page).to have_text('Maintenance Incident')
end

context 'when accepting request' do
Expand Down Expand Up @@ -82,7 +82,7 @@
end

it 'displays information on type of request' do
expect(page).to have_text('This is a Maintenance Incident')
expect(page).to have_text('Maintenance Incident')
end

it 'has patchinfo submission' do
Expand Down