feat(storybook): Added storybook support for remote self destruct popup
Added storybook support for remote self destruct popup
This commit is contained in:
parent
7a77748d32
commit
fe22cf1bda
|
@ -129,6 +129,10 @@ ListModel {
|
|||
title: "SignMintTokenTransactionPopup"
|
||||
section: "Popups"
|
||||
}
|
||||
ListElement {
|
||||
title: "RemoteSelfDestructPopup"
|
||||
section: "Popups"
|
||||
}
|
||||
ListElement {
|
||||
title: "MembersSelector"
|
||||
section: "Components"
|
||||
|
|
|
@ -0,0 +1,76 @@
|
|||
import QtQuick 2.14
|
||||
import QtQuick.Controls 2.14
|
||||
import QtQuick.Layouts 1.14
|
||||
|
||||
import Storybook 1.0
|
||||
import Models 1.0
|
||||
|
||||
import AppLayouts.Chat.popups.community 1.0
|
||||
|
||||
SplitView {
|
||||
Logs { id: logs }
|
||||
|
||||
SplitView {
|
||||
orientation: Qt.Vertical
|
||||
SplitView.fillWidth: true
|
||||
|
||||
Item {
|
||||
SplitView.fillWidth: true
|
||||
SplitView.fillHeight: true
|
||||
|
||||
PopupBackground {
|
||||
anchors.fill: parent
|
||||
}
|
||||
|
||||
Button {
|
||||
anchors.centerIn: parent
|
||||
text: "Reopen"
|
||||
|
||||
onClicked: dialog.open()
|
||||
}
|
||||
|
||||
RemoteSelfDestructPopup {
|
||||
id: dialog
|
||||
|
||||
anchors.centerIn: parent
|
||||
collectibleName: editorCollectible.text
|
||||
model: TokenHoldersModel {}
|
||||
|
||||
onSelfDestructClicked: logs.logEvent("RemoteSelfDestructPopup::onSelfDestructClicked")
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
LogsAndControlsPanel {
|
||||
id: logsAndControlsPanel
|
||||
|
||||
SplitView.minimumHeight: 100
|
||||
SplitView.preferredHeight: 150
|
||||
|
||||
logsView.logText: logs.logText
|
||||
}
|
||||
}
|
||||
|
||||
Pane {
|
||||
SplitView.minimumWidth: 300
|
||||
SplitView.preferredWidth: 300
|
||||
|
||||
ColumnLayout {
|
||||
|
||||
Label {
|
||||
Layout.fillWidth: true
|
||||
text: "Collectible name"
|
||||
}
|
||||
|
||||
TextField {
|
||||
id: editorCollectible
|
||||
background: Rectangle { border.color: 'lightgrey' }
|
||||
Layout.preferredWidth: 200
|
||||
text: "Anniversary"
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue