2020-12-05 20:07:22 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
2021-01-28 11:04:10 +00:00
|
|
|
import "../shared/status"
|
2021-10-14 11:33:34 +00:00
|
|
|
import "./popups"
|
2020-12-05 20:07:22 +00:00
|
|
|
import "./"
|
|
|
|
|
2021-10-14 11:33:34 +00:00
|
|
|
// TODO: replace with StatusModal
|
2020-12-05 20:07:22 +00:00
|
|
|
ModalPopup {
|
|
|
|
id: unblockContactConfirmationDialog
|
|
|
|
height: 237
|
|
|
|
width: 400
|
|
|
|
|
|
|
|
property Popup parentPopup
|
|
|
|
property string contactAddress: ""
|
|
|
|
property string contactName: ""
|
|
|
|
|
|
|
|
signal unblockButtonClicked()
|
|
|
|
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "Unblock User"
|
|
|
|
title: qsTrId("unblock-user")
|
2020-12-05 20:07:22 +00:00
|
|
|
|
|
|
|
StyledText {
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "Unblocking will allow new messages you received from %1 to reach you."
|
|
|
|
text: qsTrId("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
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
footer: Item {
|
|
|
|
id: footerContainer
|
|
|
|
width: parent.width
|
|
|
|
height: children[0].height
|
|
|
|
|
2021-01-28 11:04:10 +00:00
|
|
|
StatusButton {
|
2020-12-05 20:07:22 +00:00
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: Style.current.smallPadding
|
2021-01-28 11:04:10 +00:00
|
|
|
type: "warn"
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "Unblock User"
|
|
|
|
text: qsTrId("unblock-user")
|
2020-12-05 20:07:22 +00:00
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
onClicked: unblockContactConfirmationDialog.unblockButtonClicked()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|