feat(ProfileShowcase): Remove assets tab from settings and profile dialog
The assets tab will be implemented later on. It's not needed for this milestone
This commit is contained in:
parent
49aa747fdf
commit
5a3bca9a51
|
@ -134,7 +134,6 @@ StatusSectionLayout {
|
|||
implicitHeight: parent.height
|
||||
leftParentLayoutMargin: d.leftMargin
|
||||
|
||||
walletAssetsStore: root.walletAssetsStore
|
||||
currencyStore: root.currencyStore
|
||||
walletStore: root.store.walletStore
|
||||
profileStore: root.store.profileStore
|
||||
|
|
|
@ -30,7 +30,6 @@ SettingsContentBase {
|
|||
property PrivacyStore privacyStore
|
||||
property ContactsStore contactsStore
|
||||
property NetworkConnectionStore networkConnectionStore
|
||||
required property WalletAssetsStore walletAssetsStore
|
||||
required property CurrenciesStore currencyStore
|
||||
|
||||
property var communitiesModel
|
||||
|
@ -48,8 +47,7 @@ SettingsContentBase {
|
|||
Communities = 1,
|
||||
Accounts = 2,
|
||||
Collectibles = 3,
|
||||
Assets = 4,
|
||||
Web = 5
|
||||
Web = 4
|
||||
}
|
||||
|
||||
titleRowComponentLoader.sourceComponent: StatusButton {
|
||||
|
@ -102,12 +100,6 @@ SettingsContentBase {
|
|||
text: qsTr("Collectibles")
|
||||
}
|
||||
|
||||
StatusTabButton {
|
||||
objectName: "assetsTabButton"
|
||||
width: implicitWidth
|
||||
text: qsTr("Assets")
|
||||
}
|
||||
|
||||
StatusTabButton {
|
||||
objectName: "webTabButton"
|
||||
width: implicitWidth
|
||||
|
@ -237,21 +229,9 @@ SettingsContentBase {
|
|||
|
||||
onShowcaseEntryChanged: priv.hasAnyProfileShowcaseChanges = true
|
||||
onNavigateToAccountsTab: profileTabBar.currentIndex = MyProfileView.TabIndex.Accounts
|
||||
}
|
||||
|
||||
// assets
|
||||
ProfileShowcaseAssetsPanel {
|
||||
id: profileShowcaseAssetsPanel
|
||||
|
||||
baseModel: root.walletAssetsStore.groupedAccountAssetsModel // TODO: instantiate an assets model in profile module
|
||||
showcaseModel: root.profileStore.profileShowcaseAssetsModel
|
||||
addAccountsButtonVisible: root.profileStore.profileShowcaseAccountsModel.hiddenCount > 0
|
||||
formatCurrencyAmount: function(amount, symbol) {
|
||||
return root.currencyStore.formatCurrencyAmount(amount, symbol)
|
||||
}
|
||||
|
||||
onShowcaseEntryChanged: priv.hasAnyProfileShowcaseChanges = true
|
||||
onNavigateToAccountsTab: profileTabBar.currentIndex = MyProfileView.TabIndex.Accounts
|
||||
}
|
||||
|
||||
// web
|
||||
|
|
|
@ -598,10 +598,6 @@ Pane {
|
|||
width: implicitWidth
|
||||
text: qsTr("Collectibles")
|
||||
}
|
||||
StatusTabButton {
|
||||
width: implicitWidth
|
||||
text: qsTr("Assets")
|
||||
}
|
||||
}
|
||||
|
||||
// Profile Showcase
|
||||
|
|
Loading…
Reference in New Issue