Skip to content

Commit

Permalink
fix(surveys): make auto disappear optional (#18658)
Browse files Browse the repository at this point in the history
add auto disappear option
  • Loading branch information
liyiy authored Nov 15, 2023
1 parent 2037be5 commit ed69205
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions frontend/src/scenes/surveys/SurveyEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,17 @@ export default function SurveyEdit(): JSX.Element {
textPlaceholder="ex: We really appreciate it."
/>
</PureField>
<PureField label="Auto disappear">
<LemonCheckbox
checked={!!survey.appearance.autoDisappear}
onChange={(checked) =>
setSurveyValue('appearance', {
...survey.appearance,
autoDisappear: checked,
})
}
/>
</PureField>
</>
),
},
Expand Down
1 change: 1 addition & 0 deletions frontend/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2195,6 +2195,7 @@ export interface SurveyAppearance {
displayThankYouMessage?: boolean
thankYouMessageHeader?: string
thankYouMessageDescription?: string
autoDisappear?: boolean
position?: string
}

Expand Down

0 comments on commit ed69205

Please sign in to comment.