mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Added Table View to My Cards
This commit is contained in:
parent
19c54720c6
commit
147a3d99cb
5 changed files with 180 additions and 21 deletions
|
|
@ -138,6 +138,21 @@ Utils = {
|
|||
Utils.reload();
|
||||
},
|
||||
|
||||
myCardsView() {
|
||||
let view = window.localStorage.getItem('myCardsView');
|
||||
|
||||
if (!view || !['boards', 'table'].includes(view)) {
|
||||
view = 'boards';
|
||||
}
|
||||
|
||||
return view;
|
||||
},
|
||||
|
||||
setMyCardsView(view) {
|
||||
window.localStorage.setItem('myCardsView', view);
|
||||
Utils.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