From f0a5c249b0261acf594ca0379e60836ca0b0746a Mon Sep 17 00:00:00 2001 From: Matthias Bilger Date: Sat, 7 Jan 2023 21:12:55 +0100 Subject: [PATCH] New Window + update support --- src/components/Widgets/DroneIo.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/components/Widgets/DroneIo.vue b/src/components/Widgets/DroneIo.vue index 0924d75b..e426e1c3 100644 --- a/src/components/Widgets/DroneIo.vue +++ b/src/components/Widgets/DroneIo.vue @@ -9,8 +9,8 @@

{{ build.build.status | formatStatus }}

-

{{ build.name }}

-

{{ build.build.number }}

+

{{ build.name }}

+

{{ build.build.number }}

@@ -54,6 +54,11 @@ export default { }, }, methods: { + update() { + this.startLoading(); + this.fetchData(); + this.finishLoading(); + }, /* Make GET request to CoinGecko API endpoint */ fetchData() { this.overrideProxyChoice = true; @@ -64,7 +69,10 @@ export default { }, /* Assign data variables to the returned data */ processData(data) { - this.builds = data.slice(0, this.options.limit); + const results = data.slice(0, this.options.limit).map(obj => { + return {...obj, baseurl: this.options.host}; + }); + this.builds = results; }, infoTooltip(build) { const content = `Trigger: ${build.build.event} by ${build.build.trigger}
`