mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 13:56:10 +00:00
35a2dd5244
Also switched StatusModal to derive from StatusDialog instead of Popup type Closes #10149
27 lines
709 B
QML
27 lines
709 B
QML
import QtQuick 2.15
|
|
|
|
ConfirmationDialog {
|
|
id: root
|
|
|
|
property var messageStore
|
|
property string messageId
|
|
|
|
headerSettings.title: qsTr("Confirm deleting this message")
|
|
confirmationText: qsTr("Are you sure you want to delete this message? Be aware that other clients are not guaranteed to delete the message as well.")
|
|
height: 260
|
|
checkbox.visible: true
|
|
confirmButtonObjectName: "chatButtonsPanelConfirmDeleteMessageButton"
|
|
|
|
executeConfirm: () => {
|
|
if (checkbox.checked) {
|
|
localAccountSensitiveSettings.showDeleteMessageWarning = false
|
|
}
|
|
close()
|
|
messageStore.deleteMessage(messageId)
|
|
}
|
|
|
|
onClosed: {
|
|
destroy()
|
|
}
|
|
}
|