From 67cd9b76bf48b4b52db11b91d93734e095769bf4 Mon Sep 17 00:00:00 2001 From: Alexander Kaschta <alexander.kaschta9@kit.edu> Date: Mon, 17 Mar 2025 20:30:03 +0100 Subject: [PATCH] UPD: Clear BCD request after submission --- src/components/BCDRequestForm.vue | 46 +++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/src/components/BCDRequestForm.vue b/src/components/BCDRequestForm.vue index bedbdd5e2..f16492e1b 100644 --- a/src/components/BCDRequestForm.vue +++ b/src/components/BCDRequestForm.vue @@ -400,9 +400,17 @@ export default { // Clear everything this.clearOE() this.clearGroup() + this.clearProtectionRequirements() + this.clearTypeOfSystem() this.clearLoadBalancer() + this.clearBCDName() this.clearAccessToInternet() this.clearAccessFromInternet() + this.clearTypeOfSubnet() + this.clearDHCP() + this.clearLocations() + this.clearServices() + this.clearAdditionalComment() }, clearOE() { this.oes = null @@ -422,6 +430,44 @@ export default { }, clearAccessFromInternet() { this.access_from_internet_value = false + this.access_from_internet_explanation_value = null + }, + clearProtectionRequirements() { + this.protection_requirements_select = null + this.protection_requirements_explanation_text = null + }, + clearBCDName() { + this.bcd_name = null + }, + clearTypeOfSubnet() { + this.types_of_subnets_select = null + this.subnet_size_select = null + this.subnet_size_explanation_text = null + }, + clearDHCP() { + this.dhcp_wish_value = false + this.dhcp_own_server_value = false + this.dhcp_pool_wish_value = false + }, + clearTypeOfSystem() { + this.types_of_systems_select = null + }, + clearLocations() { + this.location_cs_value = false + this.location_cn_value = false + this.location_vm_cluster_unknown_value = false + this.location_vm_cluster_cs = false + this.location_vm_cluster_cn = false + this.location_scc_server_room_cs_value = false + this.location_scc_server_room_cn_value = false + this.location_vpn_wifi_to_vlan_value = false + }, + clearServices() { + this.vpn2vlan_value = false + this.wifi2vlan_value = false + }, + clearAdditionalComment() { + this.additional_comments_text = null }, translateOptions(items) { // Iterate over the list of options -- GitLab