From cefe6eec145c96bfbec9d77bc85439cd53476660 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Fri, 17 Jul 2020 01:31:16 +0200 Subject: [PATCH] Add text to pair confirmation page --- app/qml/DevicePage.qml | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/app/qml/DevicePage.qml b/app/qml/DevicePage.qml index 6b2f75bf7..29d026b45 100644 --- a/app/qml/DevicePage.qml +++ b/app/qml/DevicePage.qml @@ -134,19 +134,29 @@ Kirigami.ScrollablePage } } - RowLayout { + Column { visible: root.currentDevice.hasPairingRequests anchors.centerIn: parent - Button { - text: i18nd("kdeconnect-app", "Accept") - icon.name:"dialog-ok" - onClicked: root.currentDevice.acceptPairing() + + spacing: Kirigami.Units.largeSpacing + + Kirigami.PlaceholderMessage { + text: i18n("Pair requested") + anchors.horizontalCenter: parent.horizontalCenter } - Button { - text: i18nd("kdeconnect-app", "Reject") - icon.name:"dialog-cancel" - onClicked: root.currentDevice.rejectPairing() + RowLayout { + Button { + text: i18nd("kdeconnect-app", "Accept") + icon.name:"dialog-ok" + onClicked: root.currentDevice.acceptPairing() + } + + Button { + text: i18nd("kdeconnect-app", "Reject") + icon.name:"dialog-cancel" + onClicked: root.currentDevice.rejectPairing() + } } }