From f138a0f07abc9e91a9332837d591f3a6bc684eb6 Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Thu, 1 Jun 2023 10:44:01 +0200 Subject: [PATCH] Add a spinner to the app when pairing is requested --- app/qml/DevicePage.qml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/qml/DevicePage.qml b/app/qml/DevicePage.qml index 21e7ccee8..4a8fb0c6f 100644 --- a/app/qml/DevicePage.qml +++ b/app/qml/DevicePage.qml @@ -116,7 +116,7 @@ Kirigami.ScrollablePage { Kirigami.PlaceholderMessage { text: i18nd("kdeconnect-app", "This device is not paired") anchors.centerIn: parent - visible: root.currentDevice && root.currentDevice.isReachable && !root.currentDevice.isPaired && !root.currentDevice.isPairRequestedByPeer + visible: root.currentDevice && root.currentDevice.isReachable && !root.currentDevice.isPaired && !root.currentDevice.isPairRequestedByPeer && !root.currentDevice.isPairRequested helpfulAction: Kirigami.Action { text: i18nd("kdeconnect-app", "Pair") icon.name:"network-connect" @@ -124,6 +124,15 @@ Kirigami.ScrollablePage { } } + Kirigami.PlaceholderMessage { + text: i18nd("kdeconnect-app", "Pair requested") + anchors.centerIn: parent + visible: root.currentDevice && root.currentDevice.isReachable && root.currentDevice.isPairRequested + QQC2.BusyIndicator { + Layout.alignment: Qt.AlignHCenter + } + } + Kirigami.PlaceholderMessage { text: i18n("Pair requested") visible: root.currentDevice && root.currentDevice.isPairRequestedByPeer