From e2caa0dc9c75a7355892e2a3270cf39ea5c25e96 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Wed, 20 Nov 2024 18:04:02 -0500 Subject: [PATCH 1/2] turn NPS survey into a modal and make sure it shows above the Ask AI button --- packages/editor-ui/src/components/ModalDrawer.vue | 5 +++++ packages/editor-ui/src/components/NpsSurvey.vue | 6 +++++- packages/editor-ui/src/composables/useStyles.test.ts | 8 +++++++- packages/editor-ui/src/composables/useStyles.ts | 1 + 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/packages/editor-ui/src/components/ModalDrawer.vue b/packages/editor-ui/src/components/ModalDrawer.vue index 0c7d477374163..bd1039d1c8eff 100644 --- a/packages/editor-ui/src/components/ModalDrawer.vue +++ b/packages/editor-ui/src/components/ModalDrawer.vue @@ -13,10 +13,13 @@ const props = withDefaults( modal?: boolean; width: string; wrapperClosable?: boolean; + closeOnClickModal?: boolean; + zIndex?: string; }>(), { modal: true, wrapperClosable: true, + closeOnClickModal: false, }, ); @@ -77,6 +80,8 @@ onBeforeUnmount(() => { :before-close="close" :modal="modal" :wrapper-closable="wrapperClosable" + :close-on-click-modal="closeOnClickModal" + :z-index="zIndex" >