Use "Any Label" and "Any Milestone" in selects rather than the ambiguous "Any" option
This commit is contained in:
parent
a895d5d3b2
commit
f385988d16
2 changed files with 4 additions and 4 deletions
|
@ -17,7 +17,7 @@ class Label < ActiveRecord::Base
|
|||
# Requests that have no label assigned.
|
||||
LabelStruct = Struct.new(:title, :name)
|
||||
None = LabelStruct.new('No Label', 'No Label')
|
||||
Any = LabelStruct.new('Any', '')
|
||||
Any = LabelStruct.new('Any Label', '')
|
||||
|
||||
DEFAULT_COLOR = '#428BCA'
|
||||
|
||||
|
|
|
@ -16,9 +16,9 @@
|
|||
class Milestone < ActiveRecord::Base
|
||||
# Represents a "No Milestone" state used for filtering Issues and Merge
|
||||
# Requests that have no milestone assigned.
|
||||
MilestoneStruct = Struct.new(:title, :name)
|
||||
None = MilestoneStruct.new('No Milestone', 'No Milestone')
|
||||
Any = MilestoneStruct.new('Any', '')
|
||||
MilestoneStruct = Struct.new(:title, :name, :id)
|
||||
None = MilestoneStruct.new('No Milestone', 'No Milestone', 0)
|
||||
Any = MilestoneStruct.new('Any Milestone', '', -1)
|
||||
|
||||
include InternalId
|
||||
include Sortable
|
||||
|
|
Loading…
Reference in a new issue