diff --git a/src/App.vue b/src/App.vue index 8559e0a..d6e6ec0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -23,7 +23,7 @@ export default { this.isLoading = true; this.fetchDeals(); Mousetrap.bind("/", this.focusSearch, "keyup"); - Mousetrap.bind("r", this.loadDeals); + Mousetrap.bind("r", this.fetchDeals); Mousetrap.bind("escape", this.blurSearch); }, methods: { @@ -34,6 +34,7 @@ export default { this.$refs.search.blur(); }, fetchDeals() { + this.isLoading = true; axios .get("api/v1/topics") .then((response) => { @@ -170,6 +171,7 @@ export default {