Case 21642 - verification dialog when user hits return in goto search

text entry+return should throw up verification dialog for first time to
non-optimized domain
This commit is contained in:
Roxanne Skelly 2019-03-08 14:01:47 -08:00
parent 70cc6594c7
commit 88a4b5c983
2 changed files with 10 additions and 1 deletions

View file

@ -189,4 +189,13 @@ Column {
}
}
}
function isStandalone(address) {
for (var i=0; i < suggestions.count; i++) {
if (suggestions.get(i).place_name.toLowerCase() === address.toLowerCase()) {
return suggestions.get(i).standalone_optimized;
}
}
return false;
}
}

View file

@ -230,7 +230,7 @@ StackView {
updateLocationText(text.length > 0);
}
onAccepted: {
toggleOrGo();
toggleOrGo(addressLine.text, false, places.isStandalone(addressLine.text));
}
// unfortunately TextField from Quick Controls 2 disallow customization of placeHolderText color without creation of new style