From 25b2b8f8e41b2746dfaf70467b3178cbe2c08fdc Mon Sep 17 00:00:00 2001 From: Don Walizer <12420708+dwalizer@users.noreply.github.com> Date: Fri, 10 Jan 2025 15:12:44 -0500 Subject: [PATCH] #2218 Change group expand component --- .../progress/SkillsProgressList.vue | 34 +++++++++++++++++-- .../e2e/client-display/client-display_spec.js | 12 ++++--- 2 files changed, 40 insertions(+), 6 deletions(-) diff --git a/dashboard/src/skills-display/components/progress/SkillsProgressList.vue b/dashboard/src/skills-display/components/progress/SkillsProgressList.vue index e0f9e0355..cfaa070ae 100644 --- a/dashboard/src/skills-display/components/progress/SkillsProgressList.vue +++ b/dashboard/src/skills-display/components/progress/SkillsProgressList.vue @@ -229,6 +229,24 @@ const collapseAllGroups = (() => { const resetGroupExpansion = (() => { expandGroups.value = null }) + +const items = [ + { + label: 'Collapse All', + icon: 'fas fa-minus', + command: collapseAllGroups + }, + { + label: 'Expand All', + icon: 'fas fa-plus', + command: expandAllGroups + }, +] + +const menu = ref() +const toggle = (event) => { + menu.value.toggle(event) +}