mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:48:38 +02:00
Merge pull request #11803 from zfox23/commerce_fixCertDisappearing
Fix bug with disappearing certificate info
This commit is contained in:
commit
0b6cc6ba2e
2 changed files with 18 additions and 15 deletions
|
@ -113,21 +113,6 @@ Rectangle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onVisibleChanged: {
|
|
||||||
if (!visible) {
|
|
||||||
titleBarText.text = "Certificate";
|
|
||||||
popText.text = "PROOF OF PURCHASE";
|
|
||||||
root.certificateId = "";
|
|
||||||
root.itemName = "--";
|
|
||||||
root.itemOwner = "--";
|
|
||||||
root.itemEdition = "--";
|
|
||||||
root.dateOfPurchase = "--";
|
|
||||||
root.marketplaceUrl = "";
|
|
||||||
root.isMyCert = false;
|
|
||||||
errorText.text = "";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// This object is always used in a popup.
|
// This object is always used in a popup.
|
||||||
// This MouseArea is used to prevent a user from being
|
// This MouseArea is used to prevent a user from being
|
||||||
// able to click on a button/mouseArea underneath the popup.
|
// able to click on a button/mouseArea underneath the popup.
|
||||||
|
@ -420,6 +405,18 @@ Rectangle {
|
||||||
case 'inspectionCertificate_setCertificateId':
|
case 'inspectionCertificate_setCertificateId':
|
||||||
root.certificateId = message.certificateId;
|
root.certificateId = message.certificateId;
|
||||||
break;
|
break;
|
||||||
|
case 'inspectionCertificate_resetCert':
|
||||||
|
titleBarText.text = "Certificate";
|
||||||
|
popText.text = "PROOF OF PURCHASE";
|
||||||
|
root.certificateId = "";
|
||||||
|
root.itemName = "--";
|
||||||
|
root.itemOwner = "--";
|
||||||
|
root.itemEdition = "--";
|
||||||
|
root.dateOfPurchase = "--";
|
||||||
|
root.marketplaceUrl = "";
|
||||||
|
root.isMyCert = false;
|
||||||
|
errorText.text = "";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
console.log('Unrecognized message from marketplaces.js:', JSON.stringify(message));
|
console.log('Unrecognized message from marketplaces.js:', JSON.stringify(message));
|
||||||
}
|
}
|
||||||
|
|
|
@ -128,6 +128,12 @@
|
||||||
} else {
|
} else {
|
||||||
ContextOverlay.isInMarketplaceInspectionMode = false;
|
ContextOverlay.isInMarketplaceInspectionMode = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!onCommerceScreen) {
|
||||||
|
tablet.sendToQml({
|
||||||
|
method: 'inspectionCertificate_resetCert'
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function openWallet() {
|
function openWallet() {
|
||||||
|
|
Loading…
Reference in a new issue