2020-08-10 11:56:16 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
|
|
|
import "../imports"
|
|
|
|
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
|
|
|
|
2020-08-10 11:56:16 +00:00
|
|
|
title: qsTrId("block-user")
|
|
|
|
|
2020-09-15 11:21:23 +00:00
|
|
|
StyledText {
|
2020-10-02 13:02:56 +00:00
|
|
|
text: qsTr("Blocking will remove any messages you received from %1 and stop new messages from reaching you.").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
|
|
|
|
|
|
|
|
StyledButton {
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: Style.current.smallPadding
|
|
|
|
btnColor: Style.current.lightRed
|
|
|
|
btnBorderWidth: 1
|
|
|
|
btnBorderColor: Style.current.grey
|
|
|
|
textColor: Style.current.red
|
|
|
|
//% "Block User"
|
|
|
|
label: qsTrId("block-user")
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
onClicked: blockContactConfirmationDialog.blockButtonClicked()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|