Skip to content

Commit

Permalink
Fix label for 'Group By' dropdown in Workflow Invocation Metrics
Browse files Browse the repository at this point in the history
Make it dynamic like the other one for time.
  • Loading branch information
davelopez committed Dec 9, 2024
1 parent e3ac780 commit 631da64
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,10 @@ function getTimingInTitle(timing: string): string {
const timingInTitles = computed(() => {
return getTimingInTitle(timing.value);
});
const groupByInTitles = computed(() => {
return attributeToLabel[groupBy.value];
});
</script>

<template>
Expand All @@ -384,7 +388,7 @@ const timingInTitles = computed(() => {
<b-dropdown-item @click="timing = 'minutes'">{{ getTimingInTitle("minutes") }}</b-dropdown-item>
<b-dropdown-item @click="timing = 'hours'">{{ getTimingInTitle("hours") }}</b-dropdown-item>
</b-dropdown>
<b-dropdown right text="Group By: Tool">
<b-dropdown right :text="'Group By: ' + groupByInTitles">
<b-dropdown-item @click="groupBy = 'tool_id'">Tool</b-dropdown-item>
<b-dropdown-item @click="groupBy = 'step_id'">Workflow Step</b-dropdown-item>
</b-dropdown>
Expand Down

0 comments on commit 631da64

Please sign in to comment.