Add update function for DroneCi Widget
This commit is contained in:
@@ -72,6 +72,12 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
/* Fetch new data, configured by updateInterval */
|
||||||
|
update() {
|
||||||
|
this.startLoading();
|
||||||
|
this.fetchData();
|
||||||
|
this.finishLoading();
|
||||||
|
},
|
||||||
/* Make GET request to Drone CI API endpoint */
|
/* Make GET request to Drone CI API endpoint */
|
||||||
fetchData() {
|
fetchData() {
|
||||||
this.overrideProxyChoice = true;
|
this.overrideProxyChoice = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user