Commit 8b41c406 authored by Sean McGivern's avatar Sean McGivern

Merge branch '4950-unassign-slash-command-preview-fix' into 'master'

Fix unassign slash command preview

See merge request gitlab-org/gitlab-ce!18447
parents c7b12a41 36dc28fd
......@@ -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' : ''
......
---
title: Fix unassign slash command preview
merge_request: 18447
author:
type: fixed
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