2020-08-10 11:56:16 +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"
|
2020-08-10 11:56:16 +00:00
|
|
|
import "./"
|
|
|
|
|
|
|
|
ModalPopup {
|
|
|
|
id: blockContactConfirmationDialog
|
|
|
|
height: 237
|
|
|
|
width: 400
|
2020-10-02 13:02:56 +00:00
|
|
|
|
|
|
|
property Popup parentPopup
|
2020-08-10 11:56:16 +00:00
|
|
|
property string contactAddress: ""
|
|
|
|
property string contactName: ""
|
2020-10-02 13:02:56 +00:00
|
|
|
|
2020-08-10 11:56:16 +00:00
|
|
|
signal blockButtonClicked()
|
2020-10-02 13:02:56 +00:00
|
|
|
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "Block User"
|
2020-08-10 11:56:16 +00:00
|
|
|
title: qsTrId("block-user")
|
|
|
|
|
2020-09-15 11:21:23 +00:00
|
|
|
StyledText {
|
2021-08-09 11:11:04 +00:00
|
|
|
text: qsTr("Blocking will stop new messages from reaching you from %1.").arg(contactName)
|
2020-08-10 11:56:16 +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-08-10 11:56:16 +00:00
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: Style.current.smallPadding
|
2021-01-28 11:04:10 +00:00
|
|
|
type: "warn"
|
2020-08-10 11:56:16 +00:00
|
|
|
//% "Block User"
|
2021-01-28 11:04:10 +00:00
|
|
|
text: qsTrId("block-user")
|
2020-08-10 11:56:16 +00:00
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
onClicked: blockContactConfirmationDialog.blockButtonClicked()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|