Add tips on bottom

This commit is contained in:
Dave Gallant
2023-01-01 22:42:52 -05:00
parent 4fad0b6aee
commit 29a96ce5fa

View File

@@ -23,7 +23,7 @@ export default {
this.isLoading = true; this.isLoading = true;
this.fetchDeals(); this.fetchDeals();
Mousetrap.bind("/", this.focusSearch, "keyup"); Mousetrap.bind("/", this.focusSearch, "keyup");
Mousetrap.bind("r", this.loadDeals); Mousetrap.bind("r", this.fetchDeals);
Mousetrap.bind("escape", this.blurSearch); Mousetrap.bind("escape", this.blurSearch);
}, },
methods: { methods: {
@@ -34,6 +34,7 @@ export default {
this.$refs.search.blur(); this.$refs.search.blur();
}, },
fetchDeals() { fetchDeals() {
this.isLoading = true;
axios axios
.get("api/v1/topics") .get("api/v1/topics")
.then((response) => { .then((response) => {
@@ -170,6 +171,7 @@ export default {
</tbody> </tbody>
</table> </table>
<footer class="fixed-bottom"> <footer class="fixed-bottom">
<small>Tip: Press '/' to search and 'r' to reload</small>
<div class="footer-right"> <div class="footer-right">
<github-button href="https://github.com/davegallant/rfd-fyi" <github-button href="https://github.com/davegallant/rfd-fyi"
>Star</github-button >Star</github-button