Added Table View to My Cards

This commit is contained in:
helioguardabaxo 2022-04-17 22:23:29 -03:00
parent 19c54720c6
commit 147a3d99cb
5 changed files with 180 additions and 21 deletions

View file

@ -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);