status-desktop/ui/imports/shared/popups/UnblockContactConfirmationD...

50 lines
1.1 KiB
QML
Raw Normal View History

2020-12-05 20:07:22 +00:00
import QtQuick 2.13
import QtQuick.Controls 2.13
import QtQuick.Layouts 1.13
import utils 1.0
import StatusQ.Controls 0.1
import "../panels"
2020-12-05 20:07:22 +00:00
import "./"
// TODO: replace with StatusModal
2020-12-05 20:07:22 +00:00
ModalPopup {
id: unblockContactConfirmationDialog
height: 237
width: 400
property string contactAddress: ""
property string contactName: ""
2022-02-09 09:43:23 +00:00
2020-12-05 20:07:22 +00:00
signal unblockButtonClicked()
2022-02-09 09:43:23 +00:00
title: qsTr("Unblock User")
2020-12-05 20:07:22 +00:00
StyledText {
text: qsTr("Unblocking will allow new messages you received from %1 to reach you.").arg(contactName)
2020-12-05 20:07:22 +00:00
font.pixelSize: 15
anchors.left: parent.left
anchors.right: parent.right
wrapMode: Text.WordWrap
}
2022-02-09 09:43:23 +00:00
2020-12-05 20:07:22 +00:00
footer: Item {
id: footerContainer
width: parent.width
height: children[0].height
StatusButton {
2020-12-05 20:07:22 +00:00
anchors.right: parent.right
anchors.rightMargin: Style.current.smallPadding
type: StatusBaseButton.Type.Danger
text: qsTr("Unblock User")
2020-12-05 20:07:22 +00:00
anchors.bottom: parent.bottom
onClicked: unblockContactConfirmationDialog.unblockButtonClicked()
}
}
}