From 1a4972649f71de231bd1cb2845ed7c133f210f47 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Thu, 3 Oct 2024 11:37:22 +0530 Subject: [PATCH] fix: double submit for webhook form --- .../dashboard/settings/integrations/Webhooks/NewWebHook.vue | 2 +- .../dashboard/settings/integrations/Webhooks/WebhookForm.vue | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/javascript/dashboard/routes/dashboard/settings/integrations/Webhooks/NewWebHook.vue b/app/javascript/dashboard/routes/dashboard/settings/integrations/Webhooks/NewWebHook.vue index 43b1d2843..3369c3d02 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/integrations/Webhooks/NewWebHook.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/integrations/Webhooks/NewWebHook.vue @@ -52,7 +52,7 @@ export default { diff --git a/app/javascript/dashboard/routes/dashboard/settings/integrations/Webhooks/WebhookForm.vue b/app/javascript/dashboard/routes/dashboard/settings/integrations/Webhooks/WebhookForm.vue index 5e870ff57..768b32bc2 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/integrations/Webhooks/WebhookForm.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/integrations/Webhooks/WebhookForm.vue @@ -32,6 +32,7 @@ export default { required: true, }, }, + emits: ['submitWebhook', 'cancel'], setup() { return { v$: useVuelidate() }; }, @@ -64,7 +65,7 @@ export default { }, methods: { onSubmit() { - this.$emit('submit', { + this.$emit('submitWebhook', { url: this.url, subscriptions: this.subscriptions, });