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:
parent
08f3339693
commit
d7c642a2fe
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue