1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-09-10 12:03:18 +02:00

revoke: fix revocation with pwd

GitLab: #1573
Change-Id: I55dacf92ceeeba077b52488835e8d48b8ccd39a2
This commit is contained in:
Sébastien Blin 2024-02-20 11:29:27 -05:00 committed by Adrien Béraud
parent 08f3339693
commit d7c642a2fe

View file

@ -36,13 +36,15 @@ BaseModalDialog {
button1Role: DialogButtonBox.DestructiveRole
button1.enabled: false
button1.onClicked: {
DeviceItemListModel.revokeDevice(deviceId, passwordEdit.dynamicText);
DeviceItemListModel.revokeDevice(deviceId, pwd);
close();
}
button2.text: JamiStrings.optionCancel
button2Role: DialogButtonBox.RejectRole
button2.onClicked: close()
property var pwd: ""
popupContent: ColumnLayout {
id: revokeDeviceContentColumnLayout
@ -73,7 +75,10 @@ BaseModalDialog {
placeholderText: JamiStrings.enterCurrentPassword
onDynamicTextChanged: root.button1.enabled = dynamicText.length > 0
onDynamicTextChanged: {
root.pwd = dynamicText
root.button1.enabled = dynamicText.length > 0
}
}
}
}