[app] Add placeholder message around pair button

This commit is contained in:
Nicolas Fella 2020-07-05 20:00:29 +02:00
parent 48688b3ef4
commit 4531cebe18

View file

@ -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()
}
}
}
}