From d7c642a2fe33b674c236098036061874fdb93544 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= <sebastien.blin@savoirfairelinux.com> Date: Tue, 20 Feb 2024 11:29:27 -0500 Subject: [PATCH] revoke: fix revocation with pwd GitLab: #1573 Change-Id: I55dacf92ceeeba077b52488835e8d48b8ccd39a2 --- .../components/RevokeDevicePasswordDialog.qml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/app/settingsview/components/RevokeDevicePasswordDialog.qml b/src/app/settingsview/components/RevokeDevicePasswordDialog.qml index 28f557b3e..1731cfcd7 100644 --- a/src/app/settingsview/components/RevokeDevicePasswordDialog.qml +++ b/src/app/settingsview/components/RevokeDevicePasswordDialog.qml @@ -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 + } } } } -- GitLab