summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/CloudCredentials.qml14
-rw-r--r--mobile-widgets/qml/main.qml2
2 files changed, 16 insertions, 0 deletions
diff --git a/mobile-widgets/qml/CloudCredentials.qml b/mobile-widgets/qml/CloudCredentials.qml
index 1222dbb2b..7f1e0d986 100644
--- a/mobile-widgets/qml/CloudCredentials.qml
+++ b/mobile-widgets/qml/CloudCredentials.qml
@@ -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 }
}
}
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index a855cdaf6..99c8dc27b 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -23,6 +23,8 @@ Kirigami.ApplicationWindow {
property QtObject notification: null
property bool showingDiveList: false
property alias syncToCloud: manager.syncToCloud
+ property alias showPin: manager.showPin
+
onAccessingCloudChanged: {
// >= 0 for updating cloud, -1 for hide, < -1 for local storage
if (accessingCloud >= 0) {