Skip to content

Commit

Permalink
Use composition utility to show number of planned workers
Browse files Browse the repository at this point in the history
  • Loading branch information
pgiraud committed Oct 10, 2024
1 parent 26825f0 commit 9c9e4e5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/WorkersDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,17 @@ const viewOptions = inject(ViewOptionsKey) as ViewOptions
const helpService = new HelpService()
const getHelpMessage = helpService.getHelpMessage
const { workersLaunchedCount } = useNode(plan, node, viewOptions)
const { workersLaunchedCount, workersPlannedCount } = useNode(
plan,
node,
viewOptions
)
</script>
<template>
<!-- workers tab -->
<div>
<b>Workers planned: </b>
<span class="px-1">{{
node[NodeProp.WORKERS_PLANNED] || node[NodeProp.WORKERS_PLANNED_BY_GATHER]
}}</span>
<span class="px-1">{{ workersPlannedCount }} </span>
<em
v-if="
!node[NodeProp.WORKERS_PLANNED] &&
Expand Down

0 comments on commit 9c9e4e5

Please sign in to comment.