mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 20:06:02 +02:00
Add UserInfoViewer
This commit is contained in:
parent
d64b35729f
commit
8cc5a0a7cb
2 changed files with 19 additions and 3 deletions
|
@ -315,7 +315,12 @@ Rectangle {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
onSendSignalToWallet: {
|
onSendSignalToWallet: {
|
||||||
sendToScript(msg);
|
if (msg.method === 'transactionHistory_usernameLinkClicked') {
|
||||||
|
userInfoViewer.url = msg.usernameLink;
|
||||||
|
userInfoViewer.visible = true;
|
||||||
|
} else {
|
||||||
|
sendToScript(msg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -682,9 +687,16 @@ Rectangle {
|
||||||
// TAB BUTTONS END
|
// TAB BUTTONS END
|
||||||
//
|
//
|
||||||
|
|
||||||
|
HifiControls.TabletWebView {
|
||||||
|
id: userInfoViewer;
|
||||||
|
z: 998;
|
||||||
|
anchors.fill: parent;
|
||||||
|
visible: false;
|
||||||
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: keyboardContainer;
|
id: keyboardContainer;
|
||||||
z: 998;
|
z: 999;
|
||||||
visible: keyboard.raised;
|
visible: keyboard.raised;
|
||||||
property bool punctuationMode: false;
|
property bool punctuationMode: false;
|
||||||
anchors {
|
anchors {
|
||||||
|
|
|
@ -413,7 +413,11 @@ Item {
|
||||||
font.strikeout: model.status === "invalidated";
|
font.strikeout: model.status === "invalidated";
|
||||||
|
|
||||||
onLinkActivated: {
|
onLinkActivated: {
|
||||||
sendSignalToWallet({method: 'transactionHistory_linkClicked', marketplaceLink: link});
|
if (link.indexOf("users/") !== -1) {
|
||||||
|
sendSignalToWallet({method: 'transactionHistory_usernameLinkClicked', usernameLink: link});
|
||||||
|
} else {
|
||||||
|
sendSignalToWallet({method: 'transactionHistory_linkClicked', marketplaceLink: link});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue