diff --git a/frontend/src/components/Setup/PlatformGroupList.vue b/frontend/src/components/Setup/PlatformGroupList.vue index 9c15fd20b..76a38416d 100644 --- a/frontend/src/components/Setup/PlatformGroupList.vue +++ b/frontend/src/components/Setup/PlatformGroupList.vue @@ -28,6 +28,17 @@ const countSelectedInGroup = (platforms: Platform[]) => { selectedPlatformsModel.value.includes(p.fs_slug), ).length; }; + +const togglePlatformSelection = (platformSlug: string) => { + if (!props.showCheckboxes) return; + + const selected = selectedPlatformsModel.value; + const isSelected = selected.includes(platformSlug); + + selectedPlatformsModel.value = isSelected + ? selected.filter((slug) => slug !== platformSlug) + : [...selected, platformSlug]; +};