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 { StyledText {
id: timeValue id: timeValue
text: new Date(parseInt(timestamp)).toLocaleString(locale) text: new Date(parseInt(timestamp) * 1000).toLocaleString(locale)
font.pixelSize: Style.current.primaryTextFontSize font.pixelSize: Style.current.primaryTextFontSize
anchors.rightMargin: Style.current.smallPadding anchors.rightMargin: Style.current.smallPadding
} }

View File

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