Fix unassign slash command preview

This commit is contained in:
Athar Hameed 2018-04-24 12:21:01 +00:00 committed by Sean McGivern
parent c7b12a4186
commit 36dc28fd55
2 changed files with 9 additions and 2 deletions

View file

@ -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' : ''

View file

@ -0,0 +1,5 @@
---
title: Fix unassign slash command preview
merge_request: 18447
author:
type: fixed