Skip to content

Commit fae2e48

Browse files
CrazyMealRobStand
authored andcommitted
Removing "confirmPrompt" on reload action (#85)
* Removing "confirmPrompt" on reload action As documentation is saying here: https://docs.botframework.com/en-us/node/builder/chat-reference/classes/_botbuilder_d_.dialog.html#reloadaction , reload action doesn't handle "confirmPrompt" (more details available on IBeginDialogActionOptions documentation about what is really available for reloadAction) * Remove confirmPrompt from reloadAction snippet Removing the other confirmPrompt in the topic.
1 parent 05915fa commit fae2e48

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

articles/nodejs/bot-builder-nodejs-dialog-replace.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,7 @@ bot.dialog('orderDinner', [
137137
.reloadAction(
138138
"restartOrderDinner", "Ok. Let's start over.",
139139
{
140-
matches: /^start over$/i,
141-
confirmPrompt: "This wil cancel your order. Are you sure?"
140+
matches: /^start over$/i
142141
}
143142
)
144143
.cancelAction(
@@ -214,8 +213,7 @@ bot.dialog("addDinnerItem", [
214213
.reloadAction(
215214
"restartOrderDinner", "Ok. Let's start over.",
216215
{
217-
matches: /^start over$/i,
218-
confirmPrompt: "This will cancel your order. Are you sure?"
216+
matches: /^start over$/i
219217
}
220218
);
221219
```

0 commit comments

Comments
 (0)