From 1efef94edbc7b91a2c5c1add3ed9c4561a871f07 Mon Sep 17 00:00:00 2001 From: Noelia Date: Wed, 31 May 2023 10:23:05 +0200 Subject: [PATCH] feat(storybook): Some improvements in mint settings page Added back button option and log additional information. --- storybook/pages/CommunityMintTokensSettingsPanelPage.qml | 9 ++++++++- storybook/pages/CommunityMintedTokensViewPage.qml | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/storybook/pages/CommunityMintTokensSettingsPanelPage.qml b/storybook/pages/CommunityMintTokensSettingsPanelPage.qml index ebec35c076..6dcedc20c3 100644 --- a/storybook/pages/CommunityMintTokensSettingsPanelPage.qml +++ b/storybook/pages/CommunityMintTokensSettingsPanelPage.qml @@ -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) } } diff --git a/storybook/pages/CommunityMintedTokensViewPage.qml b/storybook/pages/CommunityMintedTokensViewPage.qml index bf4b719783..d95ea76c3e 100644 --- a/storybook/pages/CommunityMintedTokensViewPage.qml +++ b/storybook/pages/CommunityMintedTokensViewPage.qml @@ -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) } }