Merge pull request #12236 from zfox23/commerce_fixSecurityImageSelectionClear

Fix security image index clear after back nav
This commit is contained in:
Zach Fox 2018-01-24 13:43:49 -08:00 committed by GitHub
commit 6f54921cb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -99,6 +99,10 @@ Item {
function initModel() {
gridModel.initModel();
}
function resetSelection() {
securityImageGrid.currentIndex = -1;
}
//
// FUNCTION DEFINITIONS END
//

View file

@ -348,6 +348,7 @@ Item {
width: 200;
text: "Back"
onClicked: {
securityImageSelection.resetSelection();
root.activeView = "step_1";
}
}
@ -516,6 +517,7 @@ Item {
width: 200;
text: "Back"
onClicked: {
securityImageSelection.resetSelection();
root.lastPage = "step_3";
root.activeView = "step_2";
}