Skip to content

Commit 5cead56

Browse files
committed
ui fixes
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent 9423b68 commit 5cead56

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

ui/src/components/view/WebhookFiltersTab.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</template>
4646
<a-select
4747
style="margin-left: 0"
48-
:value="addFilterForm.matchtype"
48+
v-model:value="addFilterForm.matchtype"
4949
placeholder="Select match type"
5050
allow-clear>
5151
<a-select-option value="exact">{{ $t('label.exact') }}</a-select-option>
@@ -187,7 +187,7 @@ export default {
187187
created () {
188188
this.updateColumns()
189189
this.pageSize = this.pageSizeOptions[0] * 1
190-
this.resetAddFilterForm()
190+
this.initAddFilterForm()
191191
this.fetchData()
192192
},
193193
watch: {
@@ -253,7 +253,7 @@ export default {
253253
this.columns[this.columns.length - 1].customFilterDropdown = true
254254
}
255255
},
256-
resetAddFilterForm () {
256+
initAddFilterForm () {
257257
this.addFormRef = ref()
258258
this.addFilterForm = reactive({
259259
mode: 'include',
@@ -264,6 +264,11 @@ export default {
264264
value: [{ required: true, message: this.$t('message.error.required.input') }]
265265
})
266266
},
267+
resetAddFilterForm () {
268+
if (this.addFormRef.value) {
269+
this.addFormRef.value.resetFields()
270+
}
271+
},
267272
addFilter (e) {
268273
e.preventDefault()
269274
if (this.tabLoading) return

0 commit comments

Comments
 (0)