const LIMIT = 500;
const INPUT_WIDTH = '250px';
const MINIMUM_QUERY_LENGTH = 2;
+const UNASSIGNED = '<UNASSIGNED>';
type Issue = {
actions?: Array<string>,
defaultOptions.push({ id: currentUser.login, text: `${currentUser.name} (${currentUser.login})` });
}
if (canBeUnassigned) {
- defaultOptions.push({ id: '', text: translate('unassigned') });
+ defaultOptions.push({ id: UNASSIGNED, text: translate('unassigned') });
}
input.select2({
const assignee = this.$('#assignee').val();
if (this.$('#assign-action').is(':checked') && assignee != null) {
- query['assign'] = assignee;
+ query['assign'] = assignee === UNASSIGNED ? '' : assignee;
}
const type = this.$('#type').val();