feat(MintToken): Created self destruct alert popup

Created self destruct alert popup.

Part of #10051
This commit is contained in:
Noelia 2023-03-31 14:26:49 +02:00 committed by Noelia
parent fe22cf1bda
commit 54582db3a6
2 changed files with 61 additions and 1 deletions

View File

@ -0,0 +1,59 @@
import QtQuick 2.14
import QtQuick.Controls 2.14
import QtQuick.Layouts 1.14
import QtQml.Models 2.14
import StatusQ.Core 0.1
import StatusQ.Controls 0.1
import StatusQ.Popups.Dialog 0.1
import StatusQ.Core.Theme 0.1
import AppLayouts.Chat.panels.communities 1.0
import utils 1.0
StatusDialog {
id: root
property int tokenCount: 0
signal selfDestructClicked
signal cancelClicked
title: qsTr("Self-destruct %n token(s)", "", root.tokenCount)
implicitWidth: 400 // by design
topPadding: Style.current.padding
bottomPadding: topPadding
contentItem: StatusBaseText {
text: qsTr("Continuing will destroy tokens held by members and revoke any perissions they given. To undo you will have to issue them new tokens.")
font.pixelSize: Style.current.primaryTextFontSize
wrapMode: Text.WordWrap
lineHeight: 1.2
}
footer: StatusDialogFooter {
spacing: Style.current.padding
rightButtons: ObjectModel {
StatusButton {
text: qsTr("Cancel")
normalColor: "transparent"
onClicked: {
root.cancelClicked()
close()
}
}
StatusButton {
text: qsTr("Self-destruct")
type: StatusBaseButton.Type.Danger
onClicked: {
root.selfDestructClicked()
close()
}
}
}
}
}

View File

@ -1,4 +1,5 @@
CreateChannelPopup 1.0 CreateChannelPopup.qml
CommunityTokenPermissionsPopup 1.0 CommunityTokenPermissionsPopup.qml
SignMintTokenTransactionPopup 1.0 SignMintTokenTransactionPopup.qml
RemoteSelfDestructPopup 1.0 RemoteSelfDestructPopup.qml
SelfDestructAlertPopup 1.0 SelfDestructAlertPopup.qml
SignMintTokenTransactionPopup 1.0 SignMintTokenTransactionPopup.qml