QML UI: allow entering the cloud PIN on the mobile UI

Now the user doesn't need to do this on the desktop app anymore.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-06-13 16:42:36 -07:00
parent 5fa965df54
commit 07512cb2c8
3 changed files with 26 additions and 7 deletions

View file

@ -16,6 +16,7 @@ Item {
function saveCredentials() {
manager.cloudUserName = login.text
manager.cloudPassword = password.text
manager.cloudPin = pin.text
manager.saveCloudCredentials()
}
@ -76,6 +77,7 @@ Item {
Qt.ImhNoAutoUppercase
Layout.fillWidth: true
}
GridLayout {
columns: 2
@ -90,6 +92,18 @@ Item {
text: qsTr("Show password")
}
}
Kirigami.Label {
text: qsTr("PIN")
visible: rootItem.showPin
}
StyledTextField {
id: pin
text: ""
Layout.fillWidth: true
visible: rootItem.showPin
}
Item { width: Kirigami.Units.gridUnit; height: width }
}
}