mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
My Cards development
* Add cards due view * Add input for selecting sort (not working) * Add methods to `Utils` to save sort to local browser storage * CSS updates to make lists display horizontally within swimlanes
This commit is contained in:
parent
febc020cd3
commit
1ea99a5dc8
5 changed files with 202 additions and 38 deletions
|
|
@ -44,6 +44,23 @@ Utils = {
|
|||
}
|
||||
},
|
||||
|
||||
myCardsSort() {
|
||||
let sort = window.localStorage.getItem('myCardsSort');
|
||||
|
||||
if (!sort || !['board', 'dueAt'].includes(sort)) {
|
||||
window.localStorage.setItem('myCardsSort', 'board');
|
||||
location.reload();
|
||||
sort = 'board';
|
||||
}
|
||||
|
||||
return sort;
|
||||
},
|
||||
|
||||
setMyCardsSort(sort) {
|
||||
window.localStorage.setItem('myCardsSort', sort);
|
||||
location.reload();
|
||||
},
|
||||
|
||||
// XXX We should remove these two methods
|
||||
goBoardId(_id) {
|
||||
const board = Boards.findOne(_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue