From 4531cebe18906634fdf520b69349a3dcc16fd81c Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sun, 5 Jul 2020 20:00:29 +0200 Subject: [PATCH] [app] Add placeholder message around pair button --- app/qml/DevicePage.qml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/qml/DevicePage.qml b/app/qml/DevicePage.qml index 780b7bf4e..28533eb2c 100644 --- a/app/qml/DevicePage.qml +++ b/app/qml/DevicePage.qml @@ -152,11 +152,15 @@ Kirigami.Page id: untrustedDevice Item { readonly property var actions: [] - Button { + + Kirigami.PlaceholderMessage { + text: i18nd("kdeconnect-app", "This device is not paired") anchors.centerIn: parent - text: i18nd("kdeconnect-app", "Pair") - icon.name:"network-connect" - onClicked: deviceView.currentDevice.requestPair() + helpfulAction: Kirigami.Action { + text: i18nd("kdeconnect-app", "Pair") + icon.name:"network-connect" + onTriggered: deviceView.currentDevice.requestPair() + } } } }