From 42b1eae118832134038a1b38946df12b1b9bbbf6 Mon Sep 17 00:00:00 2001 From: zaelgohary Date: Tue, 12 Mar 2024 13:19:54 +0200 Subject: [PATCH] Reset add IP form on submit --- packages/playground/src/dashboard/components/add_ip.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/playground/src/dashboard/components/add_ip.vue b/packages/playground/src/dashboard/components/add_ip.vue index c7810d3a57..0e1821d2cf 100644 --- a/packages/playground/src/dashboard/components/add_ip.vue +++ b/packages/playground/src/dashboard/components/add_ip.vue @@ -263,8 +263,16 @@ export default { createCustomToast(`Failed to add IP. ${error}`, ToastType.danger); } finally { isAdding.value = false; + reset(); } } + + function reset() { + publicIP.value = ""; + toPublicIP.value = ""; + gateway.value = ""; + } + return { showDialogue, valid,