mirror of
https://github.com/davegallant/rfd-fyi.git
synced 2025-08-07 09:02:27 +00:00
Convert ascending in localStorage to a boolean
This commit is contained in:
@@ -19,7 +19,8 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.sortColumn = localStorage.getItem("sortColumn") || "score";
|
this.sortColumn = localStorage.getItem("sortColumn") || "score";
|
||||||
this.ascending = localStorage.getItem("ascending") || true;
|
this.ascending =
|
||||||
|
localStorage.getItem("ascending") === "false" ? false : true;
|
||||||
this.isLoading = true;
|
this.isLoading = true;
|
||||||
this.fetchDeals();
|
this.fetchDeals();
|
||||||
Mousetrap.bind("/", this.focusSearch, "keyup");
|
Mousetrap.bind("/", this.focusSearch, "keyup");
|
||||||
|
Reference in New Issue
Block a user