Add a spinner to the app when pairing is requested

This commit is contained in:
Albert Vaca Cintora 2023-06-01 10:44:01 +02:00
parent 064ddfa3fe
commit f138a0f07a

View file

@ -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