diff --git a/web/app/src/views/Details.vue b/web/app/src/views/Details.vue index 541f0b90..420c8585 100644 --- a/web/app/src/views/Details.vue +++ b/web/app/src/views/Details.vue @@ -1,5 +1,5 @@ @@ -58,6 +68,9 @@ export default { } }); }, + generateBadgeImageURL(duration) { + return `${SERVER_URL}/api/v1/badges/uptime/${duration}/${this.serviceStatus.key}`; + }, prettifyUptime(uptime) { if (!uptime) { return "0%";