From 0f168f87c2d890c1880209dec28839ad43486124 Mon Sep 17 00:00:00 2001 From: M Date: Mon, 26 May 2025 15:09:49 +0200 Subject: [PATCH] Add optional filtering on groups --- src/components/services/Gatus.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/services/Gatus.vue b/src/components/services/Gatus.vue index 5649a9a..022bfbc 100644 --- a/src/components/services/Gatus.vue +++ b/src/components/services/Gatus.vue @@ -42,6 +42,11 @@ export default { this.api = await this.fetch("/api/v1/endpoints/statuses", { method: "GET", cache: "no-cache" }).catch((e) => { console.error(e); }); + if (this.item.groups) { + this.api = this.api?.filter((job) => { + return this.item.groups.includes(job.group) === true; + }) + } }, countUp: function() { if (!this.api) {