mirror of https://github.com/Lissy93/dashy.git
Add update function for DroneCi Widget
This commit is contained in:
parent
f43966fdb0
commit
120c351f40
|
@ -72,6 +72,12 @@ export default {
|
|||
},
|
||||
},
|
||||
methods: {
|
||||
/* Fetch new data, configured by updateInterval */
|
||||
update() {
|
||||
this.startLoading();
|
||||
this.fetchData();
|
||||
this.finishLoading();
|
||||
},
|
||||
/* Make GET request to Drone CI API endpoint */
|
||||
fetchData() {
|
||||
this.overrideProxyChoice = true;
|
||||
|
|
Loading…
Reference in New Issue