From ed692056f16808e171ccd1de814939f79fdae148 Mon Sep 17 00:00:00 2001 From: Li Yi Yu Date: Wed, 15 Nov 2023 13:37:02 -0500 Subject: [PATCH] fix(surveys): make auto disappear optional (#18658) add auto disappear option --- frontend/src/scenes/surveys/SurveyEdit.tsx | 11 +++++++++++ frontend/src/types.ts | 1 + 2 files changed, 12 insertions(+) diff --git a/frontend/src/scenes/surveys/SurveyEdit.tsx b/frontend/src/scenes/surveys/SurveyEdit.tsx index 79a3db10bdb4f..0213c9b4fa296 100644 --- a/frontend/src/scenes/surveys/SurveyEdit.tsx +++ b/frontend/src/scenes/surveys/SurveyEdit.tsx @@ -602,6 +602,17 @@ export default function SurveyEdit(): JSX.Element { textPlaceholder="ex: We really appreciate it." /> + + + setSurveyValue('appearance', { + ...survey.appearance, + autoDisappear: checked, + }) + } + /> + ), }, diff --git a/frontend/src/types.ts b/frontend/src/types.ts index b66c5c590ec0e..7897237258ba5 100644 --- a/frontend/src/types.ts +++ b/frontend/src/types.ts @@ -2195,6 +2195,7 @@ export interface SurveyAppearance { displayThankYouMessage?: boolean thankYouMessageHeader?: string thankYouMessageDescription?: string + autoDisappear?: boolean position?: string }