mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
5fa965df54
commit
07512cb2c8
3 changed files with 26 additions and 7 deletions
|
@ -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 }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue