diff options
author | Phil Hughes <me@iamphill.com> | 2017-05-31 12:34:54 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-31 12:34:54 +0100 |
commit | f452c1aa7ddb13958502422769dc20a9a8e160fa (patch) | |
tree | 0496fdc141096064dc775e37a27f33c21ad0efa5 /app/models/board.rb | |
parent | 8039b9c3c6caedc19e0e44d086a007e8975134b7 (diff) | |
download | gitlab-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/board.rb')
-rw-r--r-- | app/models/board.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/board.rb b/app/models/board.rb index cf8317891b5..18081a32157 100644 --- a/app/models/board.rb +++ b/app/models/board.rb @@ -5,6 +5,10 @@ class Board < ActiveRecord::Base validates :project, presence: true + def backlog_list + lists.merge(List.backlog).take + end + def closed_list lists.merge(List.closed).take end |