refactor: SourceConfigurationForm fields check (#475)
Co-authored-by: Davide Di Modica <webmaster.ddm@gmail.com>
taylor_socfortress committed
Jul 13, 2025 at 10:37 UTC
fe559bfe713d0bfae610948b246beb0f46377c70
2 files changed
+6
-2
frontend/package.json
+1
-1
@@ -113,7 +113,7 @@
113
"@vue/tsconfig": "^0.7.0",
114
"cypress": "^14.5.1",
115
"depcheck": "^1.4.7",
116
- "eslint": "^9.30.1",
116
+ "eslint": "^9.31.0",
117
"flourite": "^1.3.0",
118
"fs-extra": "^11.3.0",
119
"jsdom": "^26.1.0",
frontend/src/components/incidentManagement/sources/SourceConfigurationForm.vue
+5
-1
@@ -185,6 +185,7 @@ const props = defineProps<{
185
disableSourceField?: boolean
186
showIndexNameField?: boolean
187
disableIndexNameField?: boolean
188
+ applyFieldsSanitize?: boolean
189
disabledSources?: SourceName[]
190
}>()
191
@@ -206,6 +207,7 @@ const {
207
disableSourceField,
208
showIndexNameField,
209
disableIndexNameField,
210
+ applyFieldsSanitize,
211
disabledSources
212
} = toRefs(props)
213
@@ -445,7 +447,9 @@ function getAvailableMappings(indexName: string) {
447
label: o,
448
value: o
449
}))
448
- sanitizeFields()
450
+ if (applyFieldsSanitize.value) {
451
+ sanitizeFields()
452
+ }
453
} else {
454
message.warning(res.data?.message || "An error occurred. Please try again later.")
455
}