From 6a5d080b860787e75e1edc3fb4a1a929c92dd515 Mon Sep 17 00:00:00 2001 From: Solomon Cammack Date: Fri, 27 Jan 2023 02:42:05 +0000 Subject: [PATCH] Add team filter for standings --- website/src/components/broadcast/Standings.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/website/src/components/broadcast/Standings.vue b/website/src/components/broadcast/Standings.vue index ec287207..1729f4ac 100644 --- a/website/src/components/broadcast/Standings.vue +++ b/website/src/components/broadcast/Standings.vue @@ -33,6 +33,7 @@ import { ReactiveArray, ReactiveThing } from "@/utils/reactive"; import StandingsTeam from "@/components/broadcast/StandingsTeam"; import { sortTeamsIntoStandings } from "@/utils/scenarios"; +import { cleanID } from "@/utils/content-utils"; function avg(arr) { @@ -288,6 +289,10 @@ export default { if (a.standings.map_losses < b.standings.map_losses) return -1; }; + if (this.standingsSettings?.hide?.length) { + teams = teams.filter(team => !this.standingsSettings.hide.find(id => cleanID(id) === cleanID(team.id))); + } + teams = teams.sort(sortFunction); // console.log("[standings teams]", teams);