mirror of
https://github.com/BrenBroZAYT/dashy.git
synced 2026-06-15 16:20:03 +00:00
⚡ Moves common functionality into reusable mixin
This commit is contained in:
@@ -52,11 +52,6 @@ export default {
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
/* Extends mixin, and updates data. Called by parent component */
|
||||
update() {
|
||||
this.startLoading();
|
||||
this.fetchData();
|
||||
},
|
||||
/* Make GET request to CoinGecko API endpoint */
|
||||
fetchData() {
|
||||
axios.get(this.endpoint)
|
||||
|
||||
Reference in New Issue
Block a user