status-desktop/ui/shared/BlockContactConfirmationDia...

48 lines
1.1 KiB
QML
Raw Normal View History

import QtQuick 2.13
import QtQuick.Controls 2.13
import QtQuick.Layouts 1.13
import utils 1.0
import "../shared/status"
import "./"
ModalPopup {
id: blockContactConfirmationDialog
height: 237
width: 400
2020-10-02 13:02:56 +00:00
property Popup parentPopup
property string contactAddress: ""
property string contactName: ""
2020-10-02 13:02:56 +00:00
signal blockButtonClicked()
2020-10-02 13:02:56 +00:00
2021-02-18 16:36:05 +00:00
//% "Block User"
title: qsTrId("block-user")
StyledText {
text: qsTr("Blocking will stop new messages from reaching you from %1.").arg(contactName)
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
StatusButton {
anchors.right: parent.right
anchors.rightMargin: Style.current.smallPadding
type: "warn"
//% "Block User"
text: qsTrId("block-user")
anchors.bottom: parent.bottom
onClicked: blockContactConfirmationDialog.blockButtonClicked()
}
}
}