mirror of
https://github.com/overte-org/overte.git
synced 2025-04-18 07:56:25 +02:00
fix wallet, use text from server in history (for now)
This commit is contained in:
parent
3955624e63
commit
a7af114144
2 changed files with 10 additions and 12 deletions
|
@ -42,7 +42,8 @@ Item {
|
|||
|
||||
onHistoryResult : {
|
||||
if (result.status == 'success') {
|
||||
transactionHistory.text = result.data.history;
|
||||
var txt = result.data.history.map(function(h) { return h.text; }).join("<hr>");
|
||||
transactionHistoryText.text = txt;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -234,18 +235,14 @@ Item {
|
|||
anchors.right: parent.right;
|
||||
|
||||
// some placeholder stuff
|
||||
RalewayRegular {
|
||||
TextArea {
|
||||
id: transactionHistoryText;
|
||||
text: homeMessage.visible ? "you <b>CANNOT</b> scroll through this." : "you <b>CAN</b> scroll through this";
|
||||
// Text size
|
||||
size: 16;
|
||||
// Anchors
|
||||
text: "<hr>history unavailable<hr>";
|
||||
textFormat: TextEdit.AutoText;
|
||||
font.pointSize: 10;
|
||||
anchors.fill: parent;
|
||||
// Style
|
||||
color: hifi.colors.darkGray;
|
||||
// Alignment
|
||||
horizontalAlignment: Text.AlignHCenter;
|
||||
verticalAlignment: Text.AlignVCenter;
|
||||
horizontalAlignment: Text.AlignLeft;
|
||||
verticalAlignment: Text.AlignTop;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -359,6 +356,7 @@ Item {
|
|||
}
|
||||
}
|
||||
signal sendSignalToWallet(var msg);
|
||||
|
||||
//
|
||||
// FUNCTION DEFINITIONS END
|
||||
//
|
||||
|
|
|
@ -347,7 +347,7 @@ bool Wallet::createIfNeeded() {
|
|||
qCDebug(commerce) << "read private key";
|
||||
RSA_free(key);
|
||||
// K -- add the public key since we have a legit private key associated with it
|
||||
_publicKeys.push_back(QUrl::toPercentEncoding(publicKey.toBase64()));
|
||||
_publicKeys.push_back(publicKey.toBase64());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue