Skip to content

Commit 4c072b5

Browse files
UI: show checksum field when register or upload template/isos (#10725)
1 parent 0c4ed1e commit 4c072b5

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

ui/src/views/image/RegisterOrUploadIso.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,15 @@
8888
<a-switch v-model:checked="form.directdownload"/>
8989
</a-form-item>
9090

91+
<a-form-item ref="checksum" name="checksum">
92+
<template #label>
93+
<tooltip-label :title="$t('label.checksum')" :tooltip="apiParams.checksum.description"/>
94+
</template>
95+
<a-input
96+
v-model:value="form.checksum"
97+
:placeholder="apiParams.checksum.description" />
98+
</a-form-item>
99+
91100
<a-form-item ref="zoneid" name="zoneid">
92101
<template #label>
93102
<tooltip-label :title="$t('label.zoneid')" :tooltip="apiParams.zoneid.description"/>

ui/src/views/image/RegisterOrUploadTemplate.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,16 +214,16 @@
214214
</a-form-item>
215215
</a-col>
216216
</a-row>
217-
<a-row :gutter="12" v-if="allowed && (hyperKVMShow || hyperCustomShow) && currentForm === 'Create'">
218-
<a-col :md="24" :lg="12">
217+
<a-row :gutter="12">
218+
<a-col :md="24" :lg="12" v-if="(hyperKVMShow || hyperCustomShow) && currentForm === 'Create'">
219219
<a-form-item ref="directdownload" name="directdownload">
220220
<template #label>
221221
<tooltip-label :title="$t('label.directdownload')" :tooltip="apiParams.directdownload.description"/>
222222
</template>
223223
<a-switch v-model:checked="form.directdownload" @change="handleChangeDirect" />
224224
</a-form-item>
225225
</a-col>
226-
<a-col :md="24" :lg="12" v-if="allowDirectDownload">
226+
<a-col :md="24" :lg="12">
227227
<a-form-item ref="checksum" name="checksum">
228228
<template #label>
229229
<tooltip-label :title="$t('label.checksum')" :tooltip="apiParams.checksum.description"/>

0 commit comments

Comments
 (0)