changed the icon for the collapsed backlog list
[ci skip]
This commit is contained in:
parent
8f5da962a3
commit
b6e39b02d5
4 changed files with 8 additions and 3 deletions
|
@ -88,6 +88,8 @@ $(() => {
|
|||
if (list.type === 'closed') {
|
||||
list.position = Infinity;
|
||||
list.label = { description: 'Shows all closed issues. Moving an issue to this list closes it' };
|
||||
} else if (list.type === 'backlog') {
|
||||
list.position = -1;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -87,7 +87,10 @@ gl.issueBoards.Board = Vue.extend({
|
|||
toggleExpanded(e) {
|
||||
if (this.list.isExpandable && !e.target.classList.contains('js-no-trigger-collapse')) {
|
||||
this.list.isExpanded = !this.list.isExpanded;
|
||||
localStorage.setItem(`boards.${this.boardId}.${this.list.type}.expanded`, this.list.isExpanded);
|
||||
|
||||
if (AccessorUtilities.isLocalStorageAccessSafe()) {
|
||||
localStorage.setItem(`boards.${this.boardId}.${this.list.type}.expanded`, this.list.isExpanded);
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
|
@ -104,7 +104,7 @@
|
|||
}
|
||||
|
||||
&.is-collapsed {
|
||||
width: 60px;
|
||||
width: 50px;
|
||||
|
||||
.board-header {
|
||||
position: absolute;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
%header.board-header{ ":class" => '{ "has-border": list.label && list.label.color }', ":style" => "{ borderTopColor: (list.label && list.label.color ? list.label.color : null) }", "@click" => "toggleExpanded($event)" }
|
||||
%h3.board-title.js-board-handle{ ":class" => '{ "user-can-drag": (!disabled && !list.preset) }' }
|
||||
%i.fa.fa-fw.board-title-expandable-toggle{ "v-if": "list.isExpandable",
|
||||
":class": "{ \"fa-caret-down\": list.isExpanded, \"fa-caret-left\": !list.isExpanded }",
|
||||
":class": "{ \"fa-caret-down\": list.isExpanded, \"fa-caret-right\": !list.isExpanded && list.position === -1, \"fa-caret-left\": !list.isExpanded && list.position !== -1 }",
|
||||
"aria-hidden": "true" }
|
||||
%span.has-tooltip{ ":title" => '(list.label ? list.label.description : "")',
|
||||
data: { container: "body", placement: "bottom" } }
|
||||
|
|
Loading…
Reference in a new issue