Fix unassign slash command preview
This commit is contained in:
parent
c7b12a4186
commit
36dc28fd55
2 changed files with 9 additions and 2 deletions
|
@ -138,8 +138,10 @@ module QuickActions
|
|||
'Remove assignee'
|
||||
end
|
||||
end
|
||||
explanation do
|
||||
"Removes #{'assignee'.pluralize(issuable.assignees.size)} #{issuable.assignees.map(&:to_reference).to_sentence}."
|
||||
explanation do |users = nil|
|
||||
assignees = issuable.assignees
|
||||
assignees &= users if users.present? && issuable.allows_multiple_assignees?
|
||||
"Removes #{'assignee'.pluralize(assignees.size)} #{assignees.map(&:to_reference).to_sentence}."
|
||||
end
|
||||
params do
|
||||
issuable.allows_multiple_assignees? ? '@user1 @user2' : ''
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Fix unassign slash command preview
|
||||
merge_request: 18447
|
||||
author:
|
||||
type: fixed
|
Loading…
Reference in a new issue