Skip to content

Commit 198d624

Browse files
weizhouapachedhslove
authored andcommitted
UI: show checksum field when register or upload template/isos (apache#10725)
1 parent ef4a175 commit 198d624

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
@@ -220,16 +220,16 @@
220220
</template>
221221
<a-switch v-model:checked="form.kvdoenable" />
222222
</a-form-item>
223-
<a-row :gutter="12" v-if="(hyperKVMShow || hyperCustomShow) && currentForm === 'Create'">
224-
<a-col :md="24" :lg="12">
223+
<a-row :gutter="12">
224+
<a-col :md="24" :lg="12" v-if="(hyperKVMShow || hyperCustomShow) && currentForm === 'Create'">
225225
<a-form-item ref="directdownload" name="directdownload">
226226
<template #label>
227227
<tooltip-label :title="$t('label.directdownload')" :tooltip="apiParams.directdownload.description"/>
228228
</template>
229229
<a-switch v-model:checked="form.directdownload" @change="handleChangeDirect" />
230230
</a-form-item>
231231
</a-col>
232-
<a-col :md="24" :lg="12" v-if="allowDirectDownload">
232+
<a-col :md="24" :lg="12">
233233
<a-form-item ref="checksum" name="checksum">
234234
<template #label>
235235
<tooltip-label :title="$t('label.checksum')" :tooltip="apiParams.checksum.description"/>

0 commit comments

Comments
 (0)