2023-03-31 11:27:17 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
import QtQuick.Controls 2.14
|
|
|
|
import QtQuick.Layouts 1.14
|
|
|
|
|
|
|
|
import Storybook 1.0
|
|
|
|
import Models 1.0
|
|
|
|
|
2023-06-23 06:17:04 +00:00
|
|
|
import AppLayouts.Communities.popups 1.0
|
2023-03-31 11:27:17 +00:00
|
|
|
|
|
|
|
SplitView {
|
|
|
|
Logs { id: logs }
|
2023-08-10 09:39:52 +00:00
|
|
|
ListModel {
|
|
|
|
id: accountsModel
|
|
|
|
|
|
|
|
ListElement {
|
|
|
|
name: "Test account"
|
|
|
|
emoji: "😋"
|
|
|
|
address: "0x7F47C2e18a4BBf5487E6fb082eC2D9Ab0E6d7240"
|
|
|
|
color: "red"
|
|
|
|
}
|
|
|
|
|
|
|
|
ListElement {
|
|
|
|
name: "Another account - generated"
|
|
|
|
emoji: "🚗"
|
|
|
|
address: "0x7F47C2e98a4BBf5487E6fb082eC2D9Ab0E6d8888"
|
|
|
|
color: "blue"
|
|
|
|
}
|
|
|
|
}
|
2023-03-31 11:27:17 +00:00
|
|
|
|
|
|
|
SplitView {
|
|
|
|
orientation: Qt.Vertical
|
|
|
|
SplitView.fillWidth: true
|
|
|
|
|
2023-08-17 13:58:04 +00:00
|
|
|
Pane {
|
|
|
|
id: pane
|
|
|
|
|
2023-03-31 11:27:17 +00:00
|
|
|
SplitView.fillWidth: true
|
|
|
|
SplitView.fillHeight: true
|
|
|
|
|
|
|
|
PopupBackground {
|
|
|
|
anchors.fill: parent
|
|
|
|
}
|
|
|
|
|
|
|
|
Button {
|
|
|
|
anchors.centerIn: parent
|
|
|
|
text: "Reopen"
|
|
|
|
|
|
|
|
onClicked: dialog.open()
|
|
|
|
}
|
|
|
|
|
2023-05-15 14:52:50 +00:00
|
|
|
RemotelyDestructPopup {
|
2023-03-31 11:27:17 +00:00
|
|
|
id: dialog
|
|
|
|
|
2023-08-17 13:58:04 +00:00
|
|
|
margins: 250
|
|
|
|
topMargin: 30
|
|
|
|
|
|
|
|
closePolicy: Popup.NoAutoClose
|
|
|
|
visible: true
|
|
|
|
modal: false
|
|
|
|
destroyOnClose: false
|
|
|
|
parent: pane
|
|
|
|
anchors.centerIn: pane
|
|
|
|
|
|
|
|
|
2023-03-31 11:27:17 +00:00
|
|
|
collectibleName: editorCollectible.text
|
|
|
|
model: TokenHoldersModel {}
|
2023-08-10 09:39:52 +00:00
|
|
|
accounts: accountsModel
|
|
|
|
chainName: "Optimism"
|
2023-08-17 13:58:04 +00:00
|
|
|
feeText: "0,01 ETH (60,34 USD)"
|
2023-08-10 09:39:52 +00:00
|
|
|
onRemotelyDestructClicked: {
|
2023-08-17 13:58:04 +00:00
|
|
|
logs.logEvent("RemoteSelfDestructPopup::onRemotelyDestructClicked",
|
|
|
|
["walletsAndAmounts", "accountAddress"], [
|
|
|
|
JSON.stringify(walletsAndAmounts), accountAddress
|
|
|
|
])
|
2023-08-10 09:39:52 +00:00
|
|
|
close()
|
|
|
|
}
|
2023-03-31 11:27:17 +00:00
|
|
|
|
2023-05-31 20:58:23 +00:00
|
|
|
Component.onCompleted: {
|
|
|
|
open()
|
|
|
|
}
|
2023-03-31 11:27:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-31 12:21:14 +00:00
|
|
|
// category: Popups
|