mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-13 15:17:45 +00:00
- Added `storybook` support to change minted tokens model with Owner and TMaster tokens. - Added new properties into the `tokenModel` model. - Extended `CollectiblesView` to allow Owner and TMaster tokens representation. - Updated `MintedTokensView` in order to display Owner and TMaster tokens. - Added logic to `enable/disable` MINT and AIRDROP token depending on the owner / tmaster tokens deploy state. - Added temp buttons in MINT and AIRDROP pages that keeps enabled the flows although owner and tmaster backend is not ready. - Extended navigation from outsite to minting section, depending on user profile and owner and tmaster states. - Hide footer options in case of owner token item visualized. - Added retry flow. Closes #11299
97 lines
2.2 KiB
QML
97 lines
2.2 KiB
QML
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15
|
|
import QtQuick.Layouts 1.15
|
|
|
|
import AppLayouts.Communities.views 1.0
|
|
|
|
import Storybook 1.0
|
|
import Models 1.0
|
|
|
|
import SortFilterProxyModel 0.2
|
|
|
|
import utils 1.0
|
|
|
|
SplitView {
|
|
Logs { id: logs }
|
|
|
|
MintedTokensModel {
|
|
id: allTokensModel
|
|
}
|
|
|
|
SortFilterProxyModel {
|
|
id: filteredTokensModel
|
|
|
|
sourceModel: allTokensModel
|
|
|
|
filters: [
|
|
ValueFilter {
|
|
enabled: !allTokensRadioButton.checked
|
|
roleName: "tokenType"
|
|
value: onlyAssetsRadioButton.checked ? Constants.TokenType.ERC20
|
|
: Constants.TokenType.ERC721
|
|
},
|
|
IndexFilter {
|
|
enabled: nothingRadioButton.checked
|
|
minimumIndex: -1
|
|
maximumIndex: 0
|
|
}
|
|
|
|
]
|
|
}
|
|
|
|
SplitView {
|
|
orientation: Qt.Vertical
|
|
SplitView.fillWidth: true
|
|
|
|
Item {
|
|
SplitView.fillWidth: true
|
|
SplitView.fillHeight: true
|
|
|
|
MintedTokensView {
|
|
anchors.fill: parent
|
|
anchors.margins: 50
|
|
model: filteredTokensModel
|
|
isOwner: true
|
|
isAdmin: false
|
|
|
|
onItemClicked: logs.logEvent("MintedTokensView::itemClicked",
|
|
["tokenKey"], [tokenKey])
|
|
}
|
|
}
|
|
|
|
LogsAndControlsPanel {
|
|
id: logsAndControlsPanel
|
|
|
|
SplitView.minimumHeight: 100
|
|
SplitView.preferredHeight: 150
|
|
|
|
logsView.logText: logs.logText
|
|
|
|
RowLayout {
|
|
RadioButton {
|
|
id: allTokensRadioButton
|
|
|
|
text: "Assets and collectibles"
|
|
checked: true
|
|
}
|
|
|
|
RadioButton {
|
|
id: onlyAssetsRadioButton
|
|
|
|
text: "Only assets"
|
|
}
|
|
|
|
RadioButton {
|
|
text: "Only collectibles"
|
|
}
|
|
|
|
RadioButton {
|
|
id: nothingRadioButton
|
|
|
|
text: "Nothing"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|