2023-06-28 19:30:01 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
import QtQuick.Layouts 1.15
|
2023-03-07 11:32:45 +00:00
|
|
|
|
|
|
|
import StatusQ.Popups 0.1
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
Control {
|
|
|
|
id: root
|
|
|
|
|
2023-09-14 10:02:51 +00:00
|
|
|
property string communityName
|
|
|
|
|
2023-03-07 11:32:45 +00:00
|
|
|
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
|
2023-09-14 10:02:51 +00:00
|
|
|
property alias sendOwnershipEnabled: sendOwnershipButton.enabled
|
|
|
|
|
|
|
|
property alias airdropVisible: airdropButton.visible
|
2023-06-12 10:25:59 +00:00
|
|
|
property alias remotelyDestructVisible: remotelyDestructButton.visible
|
2023-05-18 15:01:48 +00:00
|
|
|
property alias burnVisible: burnButton.visible
|
2023-09-14 10:02:51 +00:00
|
|
|
property alias sendOwnershipVisible: sendOwnershipButton.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
|
2023-09-14 10:02:51 +00:00
|
|
|
signal sendOwnershipClicked
|
2023-03-07 11:32:45 +00:00
|
|
|
|
|
|
|
height: 61 // by design
|
2024-10-15 19:26:12 +00:00
|
|
|
spacing: Theme.padding
|
2023-03-07 11:32:45 +00:00
|
|
|
|
2023-06-28 19:30:01 +00:00
|
|
|
contentItem: Item {
|
2023-03-07 11:32:45 +00:00
|
|
|
StatusModalDivider {
|
|
|
|
width: parent.width
|
|
|
|
anchors.top: parent.top
|
|
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
anchors.centerIn: parent
|
|
|
|
spacing: root.spacing
|
|
|
|
|
2023-09-14 10:02:51 +00:00
|
|
|
StatusFlatButton {
|
|
|
|
id: sendOwnershipButton
|
|
|
|
|
|
|
|
icon.name: "send"
|
|
|
|
text: qsTr("Send Owner token to transfer %1 Community ownership").arg(root.communityName)
|
|
|
|
|
|
|
|
onClicked: root.sendOwnershipClicked()
|
|
|
|
}
|
|
|
|
|
2023-03-07 11:32:45 +00:00
|
|
|
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()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|