Skip to content

Commit 9a5a073

Browse files
authored
ui: Fix configure Sticky policy form (#5814)
1 parent ae62e1d commit 9a5a073

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ui/src/views/network/LoadBalancing.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207

208208
<a-modal
209209
:title="$t('label.configure.sticky.policy')"
210-
v-model="stickinessModalVisible"
210+
:visible="stickinessModalVisible"
211211
:footer="null"
212212
:afterClose="closeModal"
213213
:maskClosable="false"
@@ -288,7 +288,7 @@
288288

289289
<div :span="24" class="action-button">
290290
<a-button @click="stickinessModalVisible = false">{{ $t('label.cancel') }}</a-button>
291-
<a-button type="primary" @submit="handleSubmitStickinessForm">{{ $t('label.ok') }}</a-button>
291+
<a-button type="primary" ref="submit" @click="handleSubmitStickinessForm">{{ $t('label.ok') }}</a-button>
292292
</div>
293293
</a-form>
294294
</a-modal>
@@ -890,6 +890,8 @@ export default {
890890
})
891891
}).catch(error => {
892892
this.$notifyError(error)
893+
}).finally(() => {
894+
this.closeModal()
893895
})
894896
},
895897
handleDeleteStickinessPolicy () {
@@ -962,6 +964,7 @@ export default {
962964
})
963965
},
964966
handleStickinessMethodSelectChange (e) {
967+
this.stickinessPolicyForm.resetFields()
965968
this.stickinessPolicyMethod = e
966969
},
967970
handleDeleteInstanceFromRule (instance, rule, ip) {

0 commit comments

Comments
 (0)