Replacing the waterdall dialog by referencing the component dialog's initial dialog ID. (#3955)
This commit is contained in:
Родитель
9fd77a1747
Коммит
1d4d580283
|
@ -101,7 +101,7 @@ namespace Microsoft.BotBuilderSamples
|
|||
else
|
||||
{
|
||||
// Otherwise, repeat this dialog, passing in the list from this iteration.
|
||||
return await stepContext.ReplaceDialogAsync(nameof(ReviewSelectionDialog), list, cancellationToken);
|
||||
return await stepContext.ReplaceDialogAsync(InitialDialogId, list, cancellationToken);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -73,7 +73,7 @@ class ReviewSelectionDialog extends ComponentDialog {
|
|||
return await stepContext.endDialog(list);
|
||||
} else {
|
||||
// Otherwise, repeat this dialog, passing in the list from this iteration.
|
||||
return await stepContext.replaceDialog(REVIEW_SELECTION_DIALOG, list);
|
||||
return await stepContext.replaceDialog(this.initialDialogId, list);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -95,5 +95,5 @@ class ReviewSelectionDialog(ComponentDialog):
|
|||
|
||||
# Otherwise, repeat this dialog, passing in the selections from this iteration.
|
||||
return await step_context.replace_dialog(
|
||||
ReviewSelectionDialog.__name__, selected
|
||||
self.initial_dialog_id, selected
|
||||
)
|
||||
|
|
Загрузка…
Ссылка в новой задаче