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

misc: issue fixes for LinkedDevices view

1. Use correct model for calling revokeDevice
2. Fix RevokeDevicePasswordDialog background color

Change-Id: I0056bcde8012d76a9010c6ba95f93a8cb8bffc2e
This commit is contained in:
Ming Rui Zhang 2021-09-07 11:55:50 -04:00
parent be6c917c5d
commit 1ab4edb6cc
2 changed files with 3 additions and 2 deletions

View file

@ -61,7 +61,7 @@ ColumnLayout {
RevokeDevicePasswordDialog{
id: revokeDevicePasswordDialog
onRevokeDeviceWithPassword: deviceItemListModel.revokeDevice(idOfDevice, password)
onRevokeDeviceWithPassword: deviceItemListModel.sourceModel.revokeDevice(idOfDevice, password)
}
SimpleMessageDialog {
@ -75,7 +75,7 @@ ColumnLayout {
buttonTitles: [JamiStrings.optionOk, JamiStrings.optionCancel]
buttonStyles: [SimpleMessageDialog.ButtonStyle.TintedBlue,
SimpleMessageDialog.ButtonStyle.TintedBlack]
buttonCallBacks: [function() {deviceItemListModel.revokeDevice(idOfDev, "")}]
buttonCallBacks: [function() {deviceItemListModel.sourceModel.revokeDevice(idOfDev, "")}]
}
Label {

View file

@ -43,6 +43,7 @@ BaseDialog {
contentItem: Rectangle {
id: revokeDeviceContentRect
color: JamiTheme.secondaryBackgroundColor
implicitWidth: JamiTheme.preferredDialogWidth
implicitHeight: JamiTheme.preferredDialogHeight