Skip to content

Commit d2685ff

Browse files
committed
Display hosttags and storagetags if available
1 parent cff9ad0 commit d2685ff

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

ui/src/views/compute/wizard/ComputeOfferingSelection.vue

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
<template #headerCell="{ column }">
4242
<template v-if="column.key === 'cpu'"><appstore-outlined /> {{ $t('label.cpu') }}</template>
4343
<template v-if="column.key === 'ram'"><bulb-outlined /> {{ $t('label.memory') }}</template>
44+
<template v-if="column.key === 'hosttags'"><tag-outlined /> {{ $t('label.hosttags') }}</template>
45+
<template v-if="column.key === 'storagetags'"><tag-outlined /> {{ $t('label.storagetags') }}</template>
4446
<template v-if="column.key === 'gpu'"><font-awesome-icon
4547
:icon="['fa-solid', 'fa-microchip']"
4648
class="anticon"
@@ -197,6 +199,22 @@ export default {
197199
})
198200
}
199201
202+
if (this.computeItems.some(item => item.hosttags !== undefined && item.hosttags !== null)) {
203+
baseColumns.push({
204+
key: 'hosttags',
205+
dataIndex: 'hosttags',
206+
width: '30%'
207+
})
208+
}
209+
210+
if (this.computeItems.some(item => item.storagetags !== undefined && item.storagetags !== null)) {
211+
baseColumns.push({
212+
key: 'storagetags',
213+
dataIndex: 'storagetags',
214+
width: '30%'
215+
})
216+
}
217+
200218
return baseColumns
201219
},
202220
tableSource () {
@@ -256,6 +274,7 @@ export default {
256274
}
257275
gpuValue = gpuCount + ' x ' + gpuType
258276
}
277+
259278
return {
260279
key: item.id,
261280
name: item.name,
@@ -267,7 +286,9 @@ export default {
267286
gpuCount: gpuCount,
268287
gpuType: gpuType,
269288
gpu: gpuValue,
270-
gpuDetails: this.getGpuDetails(item)
289+
gpuDetails: this.getGpuDetails(item),
290+
hosttags: item.hosttags !== undefined && item.hosttags !== null ? item.hosttags : undefined,
291+
storagetags: item.storagetags !== undefined && item.storagetags !== null ? item.storagetags : undefined
271292
}
272293
})
273294
},

0 commit comments

Comments
 (0)