mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-13 15:55:18 +00:00
feat(storybook): Added support for self destruct alert popup in storybook
Added support for self destruct alert popup in storybook.
This commit is contained in:
parent
54582db3a6
commit
5944b529ad
@ -133,6 +133,10 @@ ListModel {
|
||||
title: "RemoteSelfDestructPopup"
|
||||
section: "Popups"
|
||||
}
|
||||
ListElement {
|
||||
title: "SelfDestructAlertPopup"
|
||||
section: "Popups"
|
||||
}
|
||||
ListElement {
|
||||
title: "MembersSelector"
|
||||
section: "Components"
|
||||
|
60
storybook/pages/SelfDestructAlertPopupPage.qml
Normal file
60
storybook/pages/SelfDestructAlertPopupPage.qml
Normal file
@ -0,0 +1,60 @@
|
||||
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()
|
||||
}
|
||||
|
||||
SelfDestructAlertPopup {
|
||||
id: dialog
|
||||
|
||||
anchors.centerIn: parent
|
||||
tokenCount: 12
|
||||
|
||||
onSelfDestructClicked: logs.logEvent("SelfDestructAlertPopup::onSelfDestructClicked")
|
||||
onCancelClicked: logs.logEvent("SelfDestructAlertPopup::onCancelClicked")
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
LogsAndControlsPanel {
|
||||
id: logsAndControlsPanel
|
||||
|
||||
SplitView.minimumHeight: 100
|
||||
SplitView.preferredHeight: 150
|
||||
|
||||
logsView.logText: logs.logText
|
||||
}
|
||||
}
|
||||
|
||||
Pane {
|
||||
SplitView.minimumWidth: 300
|
||||
SplitView.preferredWidth: 300
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user