Skip to content
Snippets Groups Projects
Commit 1ab4edb6 authored by Ming Rui Zhang's avatar Ming Rui Zhang
Browse files

misc: issue fixes for LinkedDevices view

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

Change-Id: I0056bcde8012d76a9010c6ba95f93a8cb8bffc2e
parent be6c917c
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,7 @@ ColumnLayout { ...@@ -61,7 +61,7 @@ ColumnLayout {
RevokeDevicePasswordDialog{ RevokeDevicePasswordDialog{
id: revokeDevicePasswordDialog id: revokeDevicePasswordDialog
onRevokeDeviceWithPassword: deviceItemListModel.revokeDevice(idOfDevice, password) onRevokeDeviceWithPassword: deviceItemListModel.sourceModel.revokeDevice(idOfDevice, password)
} }
SimpleMessageDialog { SimpleMessageDialog {
...@@ -75,7 +75,7 @@ ColumnLayout { ...@@ -75,7 +75,7 @@ ColumnLayout {
buttonTitles: [JamiStrings.optionOk, JamiStrings.optionCancel] buttonTitles: [JamiStrings.optionOk, JamiStrings.optionCancel]
buttonStyles: [SimpleMessageDialog.ButtonStyle.TintedBlue, buttonStyles: [SimpleMessageDialog.ButtonStyle.TintedBlue,
SimpleMessageDialog.ButtonStyle.TintedBlack] SimpleMessageDialog.ButtonStyle.TintedBlack]
buttonCallBacks: [function() {deviceItemListModel.revokeDevice(idOfDev, "")}] buttonCallBacks: [function() {deviceItemListModel.sourceModel.revokeDevice(idOfDev, "")}]
} }
Label { Label {
......
...@@ -43,6 +43,7 @@ BaseDialog { ...@@ -43,6 +43,7 @@ BaseDialog {
contentItem: Rectangle { contentItem: Rectangle {
id: revokeDeviceContentRect id: revokeDeviceContentRect
color: JamiTheme.secondaryBackgroundColor
implicitWidth: JamiTheme.preferredDialogWidth implicitWidth: JamiTheme.preferredDialogWidth
implicitHeight: JamiTheme.preferredDialogHeight implicitHeight: JamiTheme.preferredDialogHeight
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment