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/assets/javascripts/boards/models/list.js | |
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/assets/javascripts/boards/models/list.js')
-rw-r--r-- | app/assets/javascripts/boards/models/list.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/boards/models/list.js b/app/assets/javascripts/boards/models/list.js index 90561d0f7a8..3591b2917d8 100644 --- a/app/assets/javascripts/boards/models/list.js +++ b/app/assets/javascripts/boards/models/list.js @@ -12,7 +12,9 @@ class List { this.position = obj.position; this.title = obj.title; this.type = obj.list_type; - this.preset = ['closed', 'blank'].indexOf(this.type) > -1; + this.preset = ['backlog', 'closed', 'blank'].indexOf(this.type) > -1; + this.isExpandable = ['backlog', 'closed'].indexOf(this.type) > -1; + this.isExpanded = true; this.page = 1; this.loading = true; this.loadingMore = false; |