status-desktop/ui/imports/shared/popups/BlockContactConfirmationDialog.qml
Alexandra Betouni 426c116bac refactor(desktop) Made shared a QML module
Use it as import shared 1.0, import shared.controls 1.0
etc instead of import "../../../shared"

Closes #3934
2021-10-27 18:05:45 -04:00

52 lines
1.2 KiB
QML

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"
import "."
// TODO: replace with StatusModal
ModalPopup {
id: blockContactConfirmationDialog
height: 237
width: 400
property Popup parentPopup
property string contactAddress: ""
property string contactName: ""
signal blockButtonClicked()
//% "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: StatusBaseButton.Type.Danger
//% "Block User"
text: qsTrId("block-user")
anchors.bottom: parent.bottom
onClicked: blockContactConfirmationDialog.blockButtonClicked()
}
}
}