mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:48:38 +02:00
Add a link to My Purchases from Wallet Home
This commit is contained in:
parent
d0a3c299c9
commit
917db14879
2 changed files with 25 additions and 2 deletions
|
@ -197,14 +197,36 @@ Item {
|
||||||
anchors.topMargin: 26;
|
anchors.topMargin: 26;
|
||||||
anchors.left: parent.left;
|
anchors.left: parent.left;
|
||||||
anchors.leftMargin: 20;
|
anchors.leftMargin: 20;
|
||||||
anchors.right: parent.right;
|
width: paintedWidth;
|
||||||
anchors.rightMargin: 30;
|
|
||||||
height: 30;
|
height: 30;
|
||||||
// Text size
|
// Text size
|
||||||
size: 22;
|
size: 22;
|
||||||
// Style
|
// Style
|
||||||
color: hifi.colors.baseGrayHighlight;
|
color: hifi.colors.baseGrayHighlight;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RalewaySemiBold {
|
||||||
|
id: myPurchasesLink;
|
||||||
|
text: '<font color="#0093C5"><a href="#myPurchases">My Purchases</a></font>';
|
||||||
|
// Anchors
|
||||||
|
anchors.top: parent.top;
|
||||||
|
anchors.topMargin: 26;
|
||||||
|
anchors.right: parent.right;
|
||||||
|
anchors.rightMargin: 20;
|
||||||
|
width: paintedWidth;
|
||||||
|
height: 30;
|
||||||
|
y: 4;
|
||||||
|
// Text size
|
||||||
|
size: 18;
|
||||||
|
// Style
|
||||||
|
color: hifi.colors.baseGrayHighlight;
|
||||||
|
horizontalAlignment: Text.AlignRight;
|
||||||
|
|
||||||
|
onLinkActivated: {
|
||||||
|
sendSignalToWallet({method: 'goToPurchases_fromWalletHome'});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ListModel {
|
ListModel {
|
||||||
id: tempTransactionHistoryModel;
|
id: tempTransactionHistoryModel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,6 +103,7 @@
|
||||||
case 'transactionHistory_linkClicked':
|
case 'transactionHistory_linkClicked':
|
||||||
tablet.gotoWebScreen(message.marketplaceLink, MARKETPLACES_INJECT_SCRIPT_URL);
|
tablet.gotoWebScreen(message.marketplaceLink, MARKETPLACES_INJECT_SCRIPT_URL);
|
||||||
break;
|
break;
|
||||||
|
case 'goToPurchases_fromWalletHome':
|
||||||
case 'goToPurchases':
|
case 'goToPurchases':
|
||||||
tablet.pushOntoStack(MARKETPLACE_PURCHASES_QML_PATH);
|
tablet.pushOntoStack(MARKETPLACE_PURCHASES_QML_PATH);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue