fix(@wallet): [re-add] tx history view

Fixes #4684

Correctly display the date and if the node is an archival node
This commit is contained in:
Jonathan Rainville 2022-02-04 15:06:50 -05:00 committed by Iuri Matias
parent f67ffde12c
commit 485d6a370d
2 changed files with 6 additions and 12 deletions

View File

@ -142,7 +142,7 @@ Rectangle {
}
StyledText {
id: timeValue
text: new Date(parseInt(timestamp)).toLocaleString(locale)
text: new Date(parseInt(timestamp) * 1000).toLocaleString(locale)
font.pixelSize: Style.current.primaryTextFontSize
anchors.rightMargin: Style.current.smallPadding
}

View File

@ -28,6 +28,7 @@ QtObject {
property var history: walletSectionTransactions
property var historyTransactions: walletSectionTransactions.model
property bool isNonArchivalNode: history.isNonArchivalNode
property var savedAddresses: walletSectionSavedAddresses.model
@ -83,11 +84,6 @@ QtObject {
// return walletModel.getLatestBlockNumber()
}
function isNonArchivalNode() {
// Not Refactored Yet
// return walletModel.isNonArchivalNode
}
function setInitialRange() {
// Not Refactored Yet
// walletModel.setInitialRange()
@ -154,15 +150,13 @@ QtObject {
}
function isFetchingHistory() {
// Not Refactored Yet
// return history.isFetchingHistory(walletModel.accountsView.currentAccount.address)
return history.isFetchingHistory(currentAccount.address)
}
function loadTransactionsForAccount(pageSize) {
// Not Refactored Yet
// history.loadTransactionsForAccount(walletModel.accountsView.currentAccount.address,
// historyTransactions.getLastTxBlockNumber(),
// pageSize, true)
history.loadTransactionsForAccount(currentAccount.address,
historyTransactions.getLastTxBlockNumber(),
pageSize, true)
}
function fetchCollectionCollectiblesList(slug) {