diff --git a/app/qml/DevicePage.qml b/app/qml/DevicePage.qml --- a/app/qml/DevicePage.qml +++ b/app/qml/DevicePage.qml @@ -42,7 +42,7 @@ Layout.fillHeight: true Layout.fillWidth: true - sourceComponent: deviceView.currentDevice.isTrusted ? trustedDevice : untrustedDevice + sourceComponent: deviceView.currentDevice.hasPairingRequests ? pairDevice : deviceView.currentDevice.isTrusted ? trustedDevice : untrustedDevice Component { id: trustedDevice ColumnLayout { @@ -114,5 +114,24 @@ } } } + + Component { + id: pairDevice + Item { + readonly property var actions: [] + RowLayout { + anchors.centerIn: parent + Button { + text: i18n("Accept") + onClicked: deviceView.currentDevice.acceptPairing + } + + Button { + text: i18n("Reject") + onClicked: deviceView.currentDevice.rejectPairing + } + } + } + } } }