Skip to content

Commit

Permalink
Merge pull request #2134 from glific/floweditor/interactive-ids
Browse files Browse the repository at this point in the history
Added postback text in simulator
  • Loading branch information
mdshamoon authored Aug 31, 2022
2 parents 73fd98d + fb3576a commit 2c6359d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export const ListReplyTemplateDrawer: React.SFC<ListTemplate> = (props) => {
title: option.title,
id: '',
reply: `${option.title} ${index + 1} `,
postbackText: '',
postbackText: option.postbackText ?? '',
description: option.description,
},
context: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ interface Content {
interface ButtonOption {
type: string;
title: string;
postbackText: string | null;
}

export interface QuickReplyTemplateProps {
Expand Down Expand Up @@ -48,6 +49,7 @@ export const QuickReplyTemplate: React.SFC<QuickReplyTemplateProps> = (props) =>
if (option.title) {
const payloadObject = {
payload: {
postbackText: option.postbackText ?? '',
type: 'button_reply',
title: option.title,
id: '',
Expand Down

0 comments on commit 2c6359d

Please sign in to comment.