mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-13 22:59:19 +10:00
Fix label color input.
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
class Label < ActiveRecord::Base
|
||||
DEFAULT_COLOR = '#428BCA'
|
||||
|
||||
default_value_for :color, DEFAULT_COLOR
|
||||
|
||||
belongs_to :project
|
||||
has_many :label_links, dependent: :destroy
|
||||
has_many :issues, through: :label_links, source: :target, source_type: 'Issue'
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
.col-sm-10
|
||||
.input-group
|
||||
.input-group-addon.label-color-preview
|
||||
= f.color_field :color, value: "#AA33EE", class: "form-control"
|
||||
= f.color_field :color, class: "form-control"
|
||||
.help-block
|
||||
Choose any color.
|
||||
%br
|
||||
|
||||
Reference in New Issue
Block a user