mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Merge pull request #3509 from jrsupplee/fix-2
Don't reload page when returning default sort
This commit is contained in:
commit
a6d17f3813
1 changed files with 0 additions and 4 deletions
|
|
@ -48,8 +48,6 @@ Utils = {
|
||||||
let sort = window.localStorage.getItem('myCardsSort');
|
let sort = window.localStorage.getItem('myCardsSort');
|
||||||
|
|
||||||
if (!sort || !['board', 'dueAt'].includes(sort)) {
|
if (!sort || !['board', 'dueAt'].includes(sort)) {
|
||||||
window.localStorage.setItem('myCardsSort', 'board');
|
|
||||||
location.reload();
|
|
||||||
sort = 'board';
|
sort = 'board';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -81,8 +79,6 @@ Utils = {
|
||||||
let view = window.localStorage.getItem('dueCardsView');
|
let view = window.localStorage.getItem('dueCardsView');
|
||||||
|
|
||||||
if (!view || !['me', 'all'].includes(view)) {
|
if (!view || !['me', 'all'].includes(view)) {
|
||||||
window.localStorage.setItem('dueCardsView', 'me');
|
|
||||||
location.reload();
|
|
||||||
view = 'me';
|
view = 'me';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue