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