v2 branch rebased by develop branch. Plus, a bug fix for the required fields completion
This commit is contained in:
Родитель
33672924d1
Коммит
42ef5b0de7
|
@ -42,7 +42,7 @@ function createDialog() {
|
|||
return;
|
||||
}
|
||||
session.dialogData.lastInput = session.message.text;
|
||||
session.dialogData.place[fields[index].name] = session.message.text;
|
||||
session.dialogData.place.address[fields[index].name] = session.message.text;
|
||||
}
|
||||
index++;
|
||||
while (index < fields.length) {
|
||||
|
|
|
@ -44,7 +44,7 @@ function createDialog() {
|
|||
}
|
||||
|
||||
session.dialogData.lastInput = session.message.text;
|
||||
session.dialogData.place[fields[index].name] = session.message.text;
|
||||
session.dialogData.place.address[fields[index].name] = session.message.text;
|
||||
}
|
||||
|
||||
index++;
|
||||
|
@ -60,6 +60,7 @@ function createDialog() {
|
|||
session.dialogData.index = index;
|
||||
|
||||
if (index >= fields.length) {
|
||||
|
||||
session.endDialogWithResult({ response: { place: session.dialogData.place } });
|
||||
} else {
|
||||
session.sendBatch();
|
||||
|
|
|
@ -27,6 +27,7 @@ bot.dialog("/", [
|
|||
useNativeControl: true,
|
||||
reverseGeocode: true,
|
||||
skipFavorites: false,
|
||||
skipConfirmationAsk: true,
|
||||
requiredFields:
|
||||
locationDialog.LocationRequiredFields.streetAddress |
|
||||
locationDialog.LocationRequiredFields.locality |
|
||||
|
|
Загрузка…
Ссылка в новой задаче