From 120c351f40fb32eb2c003ac61120f32351c2f610 Mon Sep 17 00:00:00 2001 From: Matthias Bilger Date: Sun, 8 Jan 2023 06:17:17 +0100 Subject: [PATCH] Add update function for DroneCi Widget --- src/components/Widgets/DroneCi.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/Widgets/DroneCi.vue b/src/components/Widgets/DroneCi.vue index c8b0ff04..8d9259e5 100644 --- a/src/components/Widgets/DroneCi.vue +++ b/src/components/Widgets/DroneCi.vue @@ -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;