Skip to content

Commit

Permalink
[webui] Clarify what set_bugowner does
Browse files Browse the repository at this point in the history
Show in the request that the previous bigowners will be deleted.
This makes more clear the difference between `add_role` bugowner and
`set_bugowner`.
  • Loading branch information
Ana06 committed Mar 26, 2018
1 parent 66c261a commit 7a425bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/app/helpers/webui/webui_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def requester_str(creator, requester_user, requester_group)
end

def creator_intentions(role = nil)
role.blank? ? 'become bugowner' : "get the role #{role}"
role.blank? ? 'become bugowner (previous bugowners will be deleted)' : "get the role #{role}"
end

# If there is any content add the ul tag
Expand Down
2 changes: 1 addition & 1 deletion src/api/spec/helpers/webui/webui_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@

describe '#creator_intentions' do
it 'do not show the requester if he is the same as the creator' do
expect(creator_intentions(nil)).to eq 'become bugowner'
expect(creator_intentions(nil)).to eq 'become bugowner (previous bugowners will be deleted)'
end

it 'show the requester if he is different as the creator' do
Expand Down

0 comments on commit 7a425bd

Please sign in to comment.