UI: show checksum field when register or upload template/isos (#10725)

This commit is contained in:
Wei Zhou 2025-05-01 09:17:37 +02:00 committed by GitHub
parent 0c4ed1e5b7
commit 4c072b5bf9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 3 deletions

View File

@ -88,6 +88,15 @@
<a-switch v-model:checked="form.directdownload"/> <a-switch v-model:checked="form.directdownload"/>
</a-form-item> </a-form-item>
<a-form-item ref="checksum" name="checksum">
<template #label>
<tooltip-label :title="$t('label.checksum')" :tooltip="apiParams.checksum.description"/>
</template>
<a-input
v-model:value="form.checksum"
:placeholder="apiParams.checksum.description" />
</a-form-item>
<a-form-item ref="zoneid" name="zoneid"> <a-form-item ref="zoneid" name="zoneid">
<template #label> <template #label>
<tooltip-label :title="$t('label.zoneid')" :tooltip="apiParams.zoneid.description"/> <tooltip-label :title="$t('label.zoneid')" :tooltip="apiParams.zoneid.description"/>

View File

@ -214,8 +214,8 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
<a-row :gutter="12" v-if="allowed && (hyperKVMShow || hyperCustomShow) && currentForm === 'Create'"> <a-row :gutter="12">
<a-col :md="24" :lg="12"> <a-col :md="24" :lg="12" v-if="(hyperKVMShow || hyperCustomShow) && currentForm === 'Create'">
<a-form-item ref="directdownload" name="directdownload"> <a-form-item ref="directdownload" name="directdownload">
<template #label> <template #label>
<tooltip-label :title="$t('label.directdownload')" :tooltip="apiParams.directdownload.description"/> <tooltip-label :title="$t('label.directdownload')" :tooltip="apiParams.directdownload.description"/>
@ -223,7 +223,7 @@
<a-switch v-model:checked="form.directdownload" @change="handleChangeDirect" /> <a-switch v-model:checked="form.directdownload" @change="handleChangeDirect" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="24" :lg="12" v-if="allowDirectDownload"> <a-col :md="24" :lg="12">
<a-form-item ref="checksum" name="checksum"> <a-form-item ref="checksum" name="checksum">
<template #label> <template #label>
<tooltip-label :title="$t('label.checksum')" :tooltip="apiParams.checksum.description"/> <tooltip-label :title="$t('label.checksum')" :tooltip="apiParams.checksum.description"/>