chore: fixed pr comments

This commit is contained in:
Dario Gabriel Lipicar 2024-11-18 10:00:23 -03:00 committed by dlipicar
parent aa117b5453
commit 338f1f6f47
2 changed files with 12 additions and 5 deletions

View File

@ -24,6 +24,12 @@ import "../views/collectibles"
RightTabBaseView {
id: root
enum TabIndex {
Assets = 0,
Collectibles = 1,
Activity = 2
}
property SharedStores.RootStore sharedRootStore
property alias currentTabIndex: walletTabBar.currentIndex
@ -149,18 +155,19 @@ RightTabBaseView {
icon.color: checked ? Theme.palette.primaryColor1 : Theme.palette.baseColor1
Behavior on icon.color { ColorAnimation { duration: 200; easing.type: Easing.InOutQuad } }
highlighted: checked
visible: walletTabBar.currentIndex !== 2 // TODO #16761: Re-enable filter for activity when implemented
visible: walletTabBar.currentIndex !== RightTabView.TabIndex.Activity // TODO #16761: Re-enable filter for activity when implemented
}
}
Loader {
id: mainViewLoader
Layout.fillWidth: true
Layout.fillHeight: true
sourceComponent: {
switch (walletTabBar.currentIndex) {
case 0: return assetsView
case 1: return collectiblesView
case 2: return historyView
case RightTabView.TabIndex.Assets: return assetsView
case RightTabView.TabIndex.Collectibles: return collectiblesView
case RightTabView.TabIndex.Activity: return historyView
}
}

View File

@ -12,7 +12,7 @@ StatusMenu {
StatusAction {
objectName: "viewTxOnExplorerItem"
text: qsTr("View on ") + networkExplorerName
text: qsTr("View on %1").arg(networkExplorerName)
icon.name: "link"
onTriggered: root.viewTxOnExplorerRequested()
}