From 68f16ca567ddd54b976cb0af4d04fcf253abdfb0 Mon Sep 17 00:00:00 2001 From: Jannik Stehle Date: Mon, 27 Nov 2023 14:30:19 +0100 Subject: [PATCH] feat: allow defining callbacks for confirm and cancel in custom modal components --- packages/web-runtime/src/App.vue | 42 +++++++++++++++++++++++++++++--- 1 file changed, 38 insertions(+), 4 deletions(-) diff --git a/packages/web-runtime/src/App.vue b/packages/web-runtime/src/App.vue index 792d10fe757..e5abbfd6a60 100644 --- a/packages/web-runtime/src/App.vue +++ b/packages/web-runtime/src/App.vue @@ -32,11 +32,11 @@ :checkbox-label="modal.checkboxLabel" :contextual-helper-label="modal.contextualHelperLabel" :contextual-helper-data="modal.contextualHelperData" - @cancel="modal.onCancel" - @confirm="modal.onConfirm" + @cancel="onModalCancel" + @confirm="onModalConfirm" @input="modal.onInput" @checkbox-changed="modal.onCheckboxValueChanged" - @confirm-secondary="modal.onConfirmSecondary" + @confirm-secondary="onModalConfirmSecondary" @passwordChallengeCompleted="modal.onPasswordChallengeCompleted" @passwordChallengeFailed="modal.onPasswordChallengeFailed" @mounted="focusModal" @@ -45,6 +45,7 @@