mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-15 17:16:26 +00:00
f58f82d4c6
- Created `TokenObject` files and use them inside `CommunityNewTokenView` instead of plain properties. - Updated `CommunityTokenView` to use `TokenObject` properties instead of plain properties. - Updated store calls to use `TokenObject` properties instead of plain properties. - Remote destruct properties renames. - Airdrop navigation extended passing token type (asset or collectible). - Updated `storybook` according to new changes.
64 lines
1.6 KiB
QML
64 lines
1.6 KiB
QML
import QtQuick 2.14
|
|
import QtQuick.Controls 2.14
|
|
import QtQuick.Layouts 1.14
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
import StatusQ.Components 0.1
|
|
|
|
import AppLayouts.Chat.views.communities 1.0
|
|
|
|
import Storybook 1.0
|
|
import Models 1.0
|
|
|
|
import utils 1.0
|
|
|
|
SplitView {
|
|
|
|
Logs { id: logs }
|
|
|
|
SplitView {
|
|
orientation: Qt.Vertical
|
|
SplitView.fillWidth: true
|
|
|
|
Item {
|
|
SplitView.fillWidth: true
|
|
SplitView.fillHeight: true
|
|
|
|
CommunityMintedTokensView {
|
|
anchors.fill: parent
|
|
anchors.margins: 50
|
|
model: MintedTokensModel.mintedTokensModel
|
|
onItemClicked: logs.logEvent("CommunityMintedTokensView::itemClicked --> " + tokenKey)
|
|
}
|
|
}
|
|
|
|
LogsAndControlsPanel {
|
|
id: logsAndControlsPanel
|
|
|
|
SplitView.minimumHeight: 100
|
|
SplitView.preferredHeight: 150
|
|
|
|
logsView.logText: logs.logText
|
|
|
|
RowLayout {
|
|
RadioButton {
|
|
text: "Assets and collectibles"
|
|
checked: true
|
|
onCheckedChanged: if(checked) MintedTokensModel.buildMintedTokensModel(true, true)
|
|
}
|
|
|
|
RadioButton {
|
|
text: "Only assets"
|
|
onCheckedChanged: if(checked) MintedTokensModel.buildMintedTokensModel(true, false)
|
|
}
|
|
|
|
RadioButton {
|
|
text: "Only collectibles"
|
|
onCheckedChanged: if(checked) MintedTokensModel.buildMintedTokensModel(false, true)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|