summaryrefslogtreecommitdiff
path: root/app/models/list.rb
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-05-31 12:34:54 +0100
committerPhil Hughes <me@iamphill.com>2017-05-31 12:34:54 +0100
commitf452c1aa7ddb13958502422769dc20a9a8e160fa (patch)
tree0496fdc141096064dc775e37a27f33c21ad0efa5 /app/models/list.rb
parent8039b9c3c6caedc19e0e44d086a007e8975134b7 (diff)
downloadgitlab-ce-f452c1aa7ddb13958502422769dc20a9a8e160fa.tar.gz
Expand/collapse close & backlog lists in issue boards
The closed & backlog lists in issue boards are no collapsible. They can be collapsed independently of each other & this selection is then saved to the browser through localStorage. When the page loads, the code gets the data from localStorage & determines whether to show or hide the list Closes #23917
Diffstat (limited to 'app/models/list.rb')
-rw-r--r--app/models/list.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/list.rb b/app/models/list.rb
index fbd19acd1f5..e587f6d99a6 100644
--- a/app/models/list.rb
+++ b/app/models/list.rb
@@ -2,7 +2,7 @@ class List < ActiveRecord::Base
belongs_to :board
belongs_to :label
- enum list_type: { label: 1, closed: 2 }
+ enum list_type: { backlog: 0, label: 1, closed: 2 }
validates :board, :list_type, presence: true
validates :label, :position, presence: true, if: :label?