feat(storybook): Some improvements in mint settings page
Added back button option and log additional information.
This commit is contained in:
parent
d4d3a6d669
commit
1efef94edb
|
@ -20,12 +20,18 @@ SplitView {
|
||||||
id: emptyModel
|
id: emptyModel
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Button {
|
||||||
|
text: "Back"
|
||||||
|
onClicked: panel.navigateBack()
|
||||||
|
}
|
||||||
Rectangle {
|
Rectangle {
|
||||||
SplitView.fillWidth: true
|
SplitView.fillWidth: true
|
||||||
SplitView.fillHeight: true
|
SplitView.fillHeight: true
|
||||||
color: Theme.palette.statusAppLayout.rightPanelBackgroundColor
|
color: Theme.palette.statusAppLayout.rightPanelBackgroundColor
|
||||||
|
|
||||||
CommunityMintTokensSettingsPanel {
|
CommunityMintTokensSettingsPanel {
|
||||||
|
id: panel
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.topMargin: 50
|
anchors.topMargin: 50
|
||||||
tokensModel: editorModelChecked.checked ? emptyModel : MintedTokensModel.mintedTokensModel
|
tokensModel: editorModelChecked.checked ? emptyModel : MintedTokensModel.mintedTokensModel
|
||||||
|
@ -39,6 +45,7 @@ SplitView {
|
||||||
onMintCollectible: logs.logEvent("CommunityMintTokensSettingsPanel::mintCollectible")
|
onMintCollectible: logs.logEvent("CommunityMintTokensSettingsPanel::mintCollectible")
|
||||||
onMintAsset: logs.logEvent("CommunityMintTokensSettingsPanel::mintAssets")
|
onMintAsset: logs.logEvent("CommunityMintTokensSettingsPanel::mintAssets")
|
||||||
onDeleteToken: logs.logEvent("CommunityMintTokensSettingsPanel::deleteToken: " + key)
|
onDeleteToken: logs.logEvent("CommunityMintTokensSettingsPanel::deleteToken: " + key)
|
||||||
|
onRetryMintToken: logs.logEvent("CommunityMintTokensSettingsPanel::retryMintToken: " + key)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ SplitView {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: 50
|
anchors.margins: 50
|
||||||
model: MintedTokensModel.mintedTokensModel
|
model: MintedTokensModel.mintedTokensModel
|
||||||
onItemClicked: logs.logEvent("CommunityMintedTokensView::itemClicked")
|
onItemClicked: logs.logEvent("CommunityMintedTokensView::itemClicked --> " + contractUniqueKey)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue