Ask for confirmation before activating encryption in a room
This commit is contained in:
@@ -154,7 +154,11 @@ Kirigami.OverlayDrawer {
|
||||
text: i18n("Enable encryption")
|
||||
display: QQC2.AbstractButton.IconOnly
|
||||
|
||||
onClicked: roomDrawer.room.activateEncryption()
|
||||
onClicked: {
|
||||
let dialog = confirmEncryptionDialog.createObject(applicationWindow(), {room: roomDrawer.room});
|
||||
roomDrawer.close();
|
||||
dialog.open();
|
||||
}
|
||||
|
||||
QQC2.ToolTip {
|
||||
text: encryptButton.text
|
||||
@@ -357,4 +361,10 @@ Kirigami.OverlayDrawer {
|
||||
|
||||
UserDetailDialog {}
|
||||
}
|
||||
|
||||
Component {
|
||||
id: confirmEncryptionDialog
|
||||
|
||||
ConfirmEncryptionDialog {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user