mirror of
https://github.com/wekan/wekan.git
synced 2025-12-28 13:18:49 +01:00
Change default view to Swimlanes.
Thanks to xet7 !
This commit is contained in:
parent
f935cf391e
commit
8c3322f9a9
4 changed files with 27 additions and 20 deletions
|
|
@ -105,7 +105,7 @@ template(name="boardHeaderBar")
|
|||
i.fa.fa-th-large
|
||||
if $eq boardView 'board-view-cal'
|
||||
i.fa.fa-calendar
|
||||
span {{#if boardView}}{{_ boardView}}{{else}}{{_ 'board-view-lists'}}{{/if}}
|
||||
span {{#if boardView}}{{_ boardView}}{{else}}{{_ 'board-view-swimlanes'}}{{/if}}
|
||||
|
||||
if canModifyBoard
|
||||
a.board-header-btn.js-multiselection-activate(
|
||||
|
|
|
|||
|
|
@ -23,8 +23,15 @@ function currentCardIsInThisList(listId, swimlaneId) {
|
|||
currentCard.listId === listId &&
|
||||
currentCard.swimlaneId === swimlaneId
|
||||
);
|
||||
// Default view: board-view-lists
|
||||
else return currentCard && currentCard.listId === listId;
|
||||
// OLD: Default view: board-view-lists
|
||||
////else return currentCard && currentCard.listId === listId;
|
||||
// NEW: Default view: board-view-swimlanes
|
||||
else return (
|
||||
currentCard &&
|
||||
currentCard.listId === listId &&
|
||||
currentCard.swimlaneId === swimlaneId
|
||||
);
|
||||
|
||||
// https://github.com/wekan/wekan/issues/1623
|
||||
// https://github.com/ChronikEwok/wekan/commit/cad9b20451bb6149bfb527a99b5001873b06c3de
|
||||
// TODO: In public board, if you would like to switch between List/Swimlane view, you could
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue