status-desktop/ui/app/AppLayouts/Communities/panels/MintTokensFooterPanel.qml

100 lines
2.6 KiB
QML

import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import StatusQ.Popups 0.1
import StatusQ.Controls 0.1
import StatusQ.Core.Theme 0.1
import utils 1.0
Control {
id: root
property string communityName
property alias airdropEnabled: airdropButton.enabled
property alias retailEnabled: retailButton.enabled
property alias remotelyDestructEnabled: remotelyDestructButton.enabled
property alias burnEnabled: burnButton.enabled
property alias sendOwnershipEnabled: sendOwnershipButton.enabled
property alias airdropVisible: airdropButton.visible
property alias remotelyDestructVisible: remotelyDestructButton.visible
property alias burnVisible: burnButton.visible
property alias sendOwnershipVisible: sendOwnershipButton.visible
signal airdropClicked
signal retailClicked
signal remotelyDestructClicked
signal burnClicked
signal sendOwnershipClicked
height: 61 // by design
spacing: Theme.padding
contentItem: Item {
StatusModalDivider {
width: parent.width
anchors.top: parent.top
}
RowLayout {
anchors.centerIn: parent
spacing: root.spacing
StatusFlatButton {
id: sendOwnershipButton
icon.name: "send"
text: qsTr("Send Owner token to transfer %1 Community ownership").arg(root.communityName)
onClicked: root.sendOwnershipClicked()
}
StatusFlatButton {
id: airdropButton
icon.name: "airdrop"
text: qsTr("Airdrop")
onClicked: root.airdropClicked()
}
StatusFlatButton {
id: retailButton
icon.name: "token-sale"
visible: false // TODO: Milestone 14
text: qsTr("Retail")
onClicked: root.retailClicked()
}
StatusFlatButton {
id: remotelyDestructButton
icon.name: "remotely-destruct"
text: qsTr("Remotely destruct")
type: StatusBaseButton.Type.Danger
borderColor: "transparent"
onClicked: root.remotelyDestructClicked()
}
StatusFlatButton {
id: burnButton
icon.name: "delete"
text: qsTr("Burn")
type: StatusBaseButton.Type.Danger
borderColor: "transparent"
onClicked: root.burnClicked()
}
}
}
}