Skip to content
Snippets Groups Projects
Commit d7c642a2 authored by Sébastien Blin's avatar Sébastien Blin Committed by Adrien Béraud
Browse files

revoke: fix revocation with pwd

GitLab: #1573
Change-Id: I55dacf92ceeeba077b52488835e8d48b8ccd39a2
parent 08f33396
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment