From 00bdb0ff1505000ee5a969a39c637ace2388a691 Mon Sep 17 00:00:00 2001 From: Noelia Date: Thu, 25 May 2023 12:30:16 +0200 Subject: [PATCH] feat(storybook): Added option in `CommunityNewTokenView` to switch between collectibles and assets It is now possible to visualise collectibles or assets flow in the storybook page. --- storybook/pages/CommunityNewTokenViewPage.qml | 12 ++++++++++++ .../Chat/views/communities/CommunityNewTokenView.qml | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/storybook/pages/CommunityNewTokenViewPage.qml b/storybook/pages/CommunityNewTokenViewPage.qml index 3c8ad3e227..35de677b6d 100644 --- a/storybook/pages/CommunityNewTokenViewPage.qml +++ b/storybook/pages/CommunityNewTokenViewPage.qml @@ -27,6 +27,7 @@ SplitView { CommunityNewTokenView { anchors.fill: parent anchors.margins: 50 + isAssetView: isAssetBox.checked layer1Networks: NetworksModel.layer1Networks layer2Networks: NetworksModel.layer2Networks testNetworks: NetworksModel.testNetworks @@ -49,4 +50,15 @@ SplitView { logsView.logText: logs.logText } } + + Pane { + SplitView.minimumWidth: 300 + SplitView.preferredWidth: 300 + + CheckBox { + id: isAssetBox + text: "Is Assets View?" + checked: false + } + } } diff --git a/ui/app/AppLayouts/Chat/views/communities/CommunityNewTokenView.qml b/ui/app/AppLayouts/Chat/views/communities/CommunityNewTokenView.qml index 427595152e..2f406adde2 100644 --- a/ui/app/AppLayouts/Chat/views/communities/CommunityNewTokenView.qml +++ b/ui/app/AppLayouts/Chat/views/communities/CommunityNewTokenView.qml @@ -34,11 +34,11 @@ StatusScrollView { property string chainIcon property var tokensModel - // Collectible properties + // Collectible properties (ERC721) readonly property alias notTransferable: transferableChecker.checked readonly property alias selfDestruct: selfDestructChecker.checked - // Asset properties + // Asset properties (ERC20) readonly property int assetDecimals: assetDecimalsInput.text ? parseInt(assetDecimalsInput.text) : 0 // Network related properties: