diff options
author | Stan Hu <stanhu@gmail.com> | 2015-10-08 21:24:55 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-10-08 23:53:32 -0700 |
commit | b60bc655f2e1318f448f3a3d884437677c1135b7 (patch) | |
tree | 5bc98fe85bb39f89c444d2dec221ba06ada1cd1d /app/models/label.rb | |
parent | 680b6d88a5c0d63deeb2909f1c83e3630db87780 (diff) | |
download | gitlab-ce-b60bc655f2e1318f448f3a3d884437677c1135b7.tar.gz |
Restore placeholders in issue filters from "Any" to "Milestone" and "Label"
1f11096c included new filters but made it hard to determine which dropdown did
what. This patch restores the original placeholders.
Diffstat (limited to 'app/models/label.rb')
-rw-r--r-- | app/models/label.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/label.rb b/app/models/label.rb index 14b544b3756..1bb4b5f55cf 100644 --- a/app/models/label.rb +++ b/app/models/label.rb @@ -14,7 +14,9 @@ class Label < ActiveRecord::Base include Referable # Represents a "No Label" state used for filtering Issues and Merge # Requests that have no label assigned. - None = Struct.new(:title, :name).new('No Label', 'No Label') + LabelStruct = Struct.new(:title, :name) + None = LabelStruct.new('No Label', 'No Label') + Any = LabelStruct.new('Any', '') DEFAULT_COLOR = '#428BCA' |