File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed
ui/src/views/compute/wizard Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change 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 },
You can’t perform that action at this time.
0 commit comments