From 926617056f046b384855123eaf179cb866e1324c Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Fri, 29 Aug 2025 22:58:09 -0400 Subject: [PATCH] Cleanup old code --- src/App.vue | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/App.vue b/src/App.vue index 4495394..29efb0f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -12,17 +12,12 @@ export default { return { ascending: this.ascending, filter: window.location.href.split("filter=")[1] || "", - isLoading: false, sortColumn: this.sortColumn, topics: [], }; }, mounted() { window.addEventListener("keydown", this.handleKeyDown); - this.sortColumn = localStorage.getItem("sortColumn") || "score"; - this.ascending = - localStorage.getItem("ascending") === "false" ? false : true; - this.isLoading = true; this.fetchDeals(); }, beforeUnmount() { @@ -47,12 +42,10 @@ export default { ); }, fetchDeals() { - this.isLoading = true; axios .get("api/v1/topics") .then((response) => { this.topics = response.data; - this.isLoading = false; }) .catch((err) => { console.log(err.response); @@ -123,7 +116,6 @@ const sortBy = ref([{ key: "score", order: "desc" }]); // Vuetify 3 format :headers="headers" :items="filteredTopics" :sort-by="sortColumn" - :sort-desc="!ascending" v-model:sortBy="sortBy" :items-per-page="25" >