My Cards development

* Popup.open() not working so simply toggle between board sort and 'due by'
* clean-up CSS classes
* code clean-up
This commit is contained in:
John R. Supplee 2021-01-07 12:04:14 +02:00
parent 1ea99a5dc8
commit e55b50bc5a
4 changed files with 79 additions and 82 deletions

View file

@ -56,6 +56,14 @@ Utils = {
return sort;
},
myCardsSortToggle() {
if (this.myCardsSort() === 'board') {
this.setMyCardsSort('dueAt');
} else {
this.setMyCardsSort('board');
}
},
setMyCardsSort(sort) {
window.localStorage.setItem('myCardsSort', sort);
location.reload();