Skip to content

Commit 6ec0137

Browse files
authored
ui: Fix uploadCustomCertificate form in infraSummary view (#6248)
* ui: Fix uploadCustomCertificate form in infraSummary view * vertical form layout * align buttons * update form rules
1 parent 39fad2d commit 6ec0137

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

ui/src/views/infra/InfraSummary.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
{{ $t('message.update.ssl') }}
5050
</p>
5151
<a-form
52+
layout="vertical"
5253
:ref="formRef"
5354
:model="form"
5455
:rules="rules"
@@ -109,7 +110,7 @@
109110
></a-textarea>
110111
</a-form-item>
111112

112-
<a-form-item name="pkcsKey" ref="pkcsKey" :required="true">
113+
<a-form-item name="pkcs" ref="pkcs" :required="true">
113114
<template #label>
114115
<tooltip-label :title="$t('label.pkcs.private.certificate')" :tooltip="apiParams.privatekey.description" tooltipPlacement="bottom"/>
115116
</template>
@@ -133,15 +134,14 @@
133134
v-model:value="form.dns"
134135
></a-input>
135136
</a-form-item>
136-
137-
<a-form-item class="controls">
137+
<div :span="24" class="action-button">
138138
<a-button @click="sslModalClose" class="close-button">
139139
{{ $t('label.cancel' ) }}
140140
</a-button>
141-
<a-button type="primary" ref="submit" :loading="sslFormSubmitting">
141+
<a-button type="primary" ref="submit" :loading="sslFormSubmitting" @click="handleSslFormSubmit">
142142
{{ $t('label.submit' ) }}
143143
</a-button>
144-
</a-form-item>
144+
</div>
145145
</a-form>
146146
</a-modal>
147147
</a-col>
@@ -207,7 +207,7 @@ export default {
207207
this.rules = reactive({
208208
root: [{ required: true, message: this.$t('label.required') }],
209209
server: [{ required: true, message: this.$t('label.required') }],
210-
pkcsKey: [{ required: true, message: this.$t('label.required') }],
210+
pkcs: [{ required: true, message: this.$t('label.required') }],
211211
dns: [{ required: true, message: this.$t('label.required') }]
212212
})
213213
},

0 commit comments

Comments
 (0)