feat(storybook): Some improvements in mint settings page

Added back button option and log additional information.
This commit is contained in:
Noelia 2023-05-31 10:23:05 +02:00 committed by Noelia
parent d4d3a6d669
commit 1efef94edb
2 changed files with 9 additions and 2 deletions

View File

@ -20,12 +20,18 @@ SplitView {
id: emptyModel
}
Button {
text: "Back"
onClicked: panel.navigateBack()
}
Rectangle {
SplitView.fillWidth: true
SplitView.fillHeight: true
color: Theme.palette.statusAppLayout.rightPanelBackgroundColor
color: Theme.palette.statusAppLayout.rightPanelBackgroundColor
CommunityMintTokensSettingsPanel {
id: panel
anchors.fill: parent
anchors.topMargin: 50
tokensModel: editorModelChecked.checked ? emptyModel : MintedTokensModel.mintedTokensModel
@ -39,6 +45,7 @@ SplitView {
onMintCollectible: logs.logEvent("CommunityMintTokensSettingsPanel::mintCollectible")
onMintAsset: logs.logEvent("CommunityMintTokensSettingsPanel::mintAssets")
onDeleteToken: logs.logEvent("CommunityMintTokensSettingsPanel::deleteToken: " + key)
onRetryMintToken: logs.logEvent("CommunityMintTokensSettingsPanel::retryMintToken: " + key)
}
}

View File

@ -28,7 +28,7 @@ SplitView {
anchors.fill: parent
anchors.margins: 50
model: MintedTokensModel.mintedTokensModel
onItemClicked: logs.logEvent("CommunityMintedTokensView::itemClicked")
onItemClicked: logs.logEvent("CommunityMintedTokensView::itemClicked --> " + contractUniqueKey)
}
}