2023-03-07 11:32:45 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
import QtQuick.Controls 2.14
|
|
|
|
import QtQuick.Layouts 1.13
|
|
|
|
|
|
|
|
import StatusQ.Popups 0.1
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
Control {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
property alias airdropEnabled: airdropButton.enabled
|
|
|
|
property alias retailEnabled: retailButton.enabled
|
2023-06-12 10:25:59 +00:00
|
|
|
property alias remotelyDestructEnabled: remotelyDestructButton.enabled
|
|
|
|
property alias burnEnabled: burnButton.enabled
|
|
|
|
property alias remotelyDestructVisible: remotelyDestructButton.visible
|
2023-05-18 15:01:48 +00:00
|
|
|
property alias burnVisible: burnButton.visible
|
2023-03-07 11:32:45 +00:00
|
|
|
|
|
|
|
signal airdropClicked
|
|
|
|
signal retailClicked
|
2023-05-15 14:52:50 +00:00
|
|
|
signal remotelyDestructClicked
|
2023-03-07 11:32:45 +00:00
|
|
|
signal burnClicked
|
|
|
|
|
|
|
|
height: 61 // by design
|
|
|
|
spacing: Style.current.padding
|
|
|
|
contentItem: Item {
|
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
StatusModalDivider {
|
|
|
|
width: parent.width
|
|
|
|
anchors.top: parent.top
|
|
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
anchors.centerIn: parent
|
|
|
|
spacing: root.spacing
|
|
|
|
|
|
|
|
StatusFlatButton {
|
|
|
|
id: airdropButton
|
|
|
|
|
|
|
|
icon.name: "airdrop"
|
|
|
|
text: qsTr("Airdrop")
|
|
|
|
|
|
|
|
onClicked: root.airdropClicked()
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusFlatButton {
|
|
|
|
id: retailButton
|
|
|
|
|
|
|
|
icon.name: "token-sale"
|
2023-03-31 12:52:51 +00:00
|
|
|
visible: false // TODO: Milestone 14
|
2023-03-07 11:32:45 +00:00
|
|
|
text: qsTr("Retail")
|
|
|
|
|
|
|
|
onClicked: root.retailClicked()
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusFlatButton {
|
2023-06-12 10:25:59 +00:00
|
|
|
id: remotelyDestructButton
|
2023-03-07 11:32:45 +00:00
|
|
|
|
2023-05-15 14:52:50 +00:00
|
|
|
icon.name: "remotely-destruct"
|
|
|
|
text: qsTr("Remotely destruct")
|
2023-03-07 11:32:45 +00:00
|
|
|
type: StatusBaseButton.Type.Danger
|
|
|
|
borderColor: "transparent"
|
|
|
|
|
2023-05-15 14:52:50 +00:00
|
|
|
onClicked: root.remotelyDestructClicked()
|
2023-03-07 11:32:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
StatusFlatButton {
|
|
|
|
id: burnButton
|
|
|
|
|
|
|
|
icon.name: "delete"
|
|
|
|
text: qsTr("Burn")
|
|
|
|
type: StatusBaseButton.Type.Danger
|
|
|
|
borderColor: "transparent"
|
|
|
|
|
|
|
|
onClicked: root.burnClicked()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|