File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -92,10 +92,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
92
92
</div >
93
93
<span class =" mx-1" >{{ node.name }}</span >
94
94
<span
95
- v-if =" !isExpanded && latestPlatform "
96
- class =" platform-badge mx-1 text-caption text-grey"
95
+ v-if =" !isExpanded && latestJob(node)?.platform "
96
+ class =" mx-1 text-grey"
97
97
>
98
- [{{ latestPlatform }}]
98
+ [{{ latestJob(node)?.platform }}]
99
99
</span >
100
100
<FlowNumsChip :flowNums =" node.node.flowNums" />
101
101
</div >
@@ -185,7 +185,6 @@ import { getIndent, getNodeChildren } from '@/components/cylc/tree/util'
185
185
import { once } from ' @/utils'
186
186
import { useToggle } from ' @vueuse/core'
187
187
import FlowNumsChip from ' @/components/cylc/common/FlowNumsChip.vue'
188
- import { computed } from ' vue' //
189
188
190
189
export default {
191
190
name: ' TreeItem' ,
@@ -250,21 +249,12 @@ export default {
250
249
// Toggles to true when this.isExpanded first becomes true and doesn't get recomputed afterwards
251
250
const renderChildren = once (isExpanded)
252
251
253
- const latestPlatform = computed (() => {
254
- const jobs = props .node .children
255
- if (props .node .type === ' task' && jobs? .length ) {
256
- return jobs[0 ]? .node ? .platform || null
257
- }
258
- return null
259
- })
260
-
261
252
return {
262
253
isExpanded,
263
254
isFlowNone,
264
255
latestJob,
265
256
renderChildren,
266
257
toggleExpandCollapse,
267
- latestPlatform,
268
258
}
269
259
},
270
260
You can’t perform that action at this time.
0 commit comments