Fix MS15582: In My Purchases, invisible buttons shouldn't be clickable

This commit is contained in:
Zach Fox 2018-06-04 16:13:18 -07:00
parent 08fcad1932
commit c5ef5cfccb

View file

@ -163,7 +163,6 @@ Item {
Rectangle { Rectangle {
id: contextCard; id: contextCard;
z: 2;
anchors.left: parent.left; anchors.left: parent.left;
anchors.leftMargin: 30; anchors.leftMargin: 30;
anchors.top: parent.top; anchors.top: parent.top;
@ -337,7 +336,6 @@ Item {
Rectangle { Rectangle {
id: permissionExplanationCard; id: permissionExplanationCard;
z: 1;
anchors.left: parent.left; anchors.left: parent.left;
anchors.leftMargin: 30; anchors.leftMargin: 30;
anchors.top: parent.top; anchors.top: parent.top;
@ -596,8 +594,8 @@ Item {
anchors.fill: parent; anchors.fill: parent;
hoverEnabled: enabled; hoverEnabled: enabled;
onClicked: { onClicked: {
contextCard.z = 1; contextCard.visible = true;
permissionExplanationCard.z = 0; permissionExplanationCard.visible = false;
root.sendToPurchases({ method: 'flipCard' }); root.sendToPurchases({ method: 'flipCard' });
} }
onEntered: { onEntered: {
@ -779,8 +777,8 @@ Item {
noPermissionGlyph.color = hifi.colors.redAccent; noPermissionGlyph.color = hifi.colors.redAccent;
} }
onClicked: { onClicked: {
contextCard.z = 0; contextCard.visible = false;
permissionExplanationCard.z = 1; permissionExplanationCard.visible = true;
root.sendToPurchases({ method: 'flipCard' }); root.sendToPurchases({ method: 'flipCard' });
} }
} }