summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/Export.qml
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qml/Export.qml')
-rw-r--r--mobile-widgets/qml/Export.qml46
1 files changed, 45 insertions, 1 deletions
diff --git a/mobile-widgets/qml/Export.qml b/mobile-widgets/qml/Export.qml
index c364ad209..3121daa13 100644
--- a/mobile-widgets/qml/Export.qml
+++ b/mobile-widgets/qml/Export.qml
@@ -26,6 +26,50 @@ Kirigami.ScrollablePage {
}
}
+ Dialog {
+ id: uploadDialog
+ title: radioGroup.current.text
+ standardButtons: StandardButton.Apply | StandardButton.Cancel
+
+ GridLayout {
+ rowSpacing: 10
+ columnSpacing: 10
+ columns: 2
+
+ Text {
+ text: qsTr("User ID")
+ }
+ TextField {
+ id: fieldUserID
+ Layout.fillWidth: true
+ inputMethodHints: Qt.ImhNoAutoUppercase
+ }
+ Text {
+ text: qsTr("Password:")
+ }
+ TextField {
+ id: fieldPassword
+ Layout.fillWidth: true
+ inputMethodHints: Qt.ImhSensitiveData |
+ Qt.ImhHiddenText |
+ Qt.ImhNoAutoUppercase
+ echoMode: TextInput.PasswordEchoOnEdit
+ }
+ ProgressBar {
+ indeterminate: true
+ }
+ }
+
+ onApply: {
+ manager.exportToWEB(selectedExport, fieldUserID.text, fieldPassword.text, anonymize.checked)
+ close()
+ }
+ onRejected: {
+ close()
+ }
+
+ }
+
ColumnLayout {
width: parent.width
spacing: 1
@@ -165,7 +209,7 @@ Kirigami.ScrollablePage {
onClicked: {
if (selectedExport === ExportType.EX_DIVELOGS_DE ||
selectedExport === ExportType.EX_DIVESHARE) {
- console.log("Upload TO BE DONE, You chose: " + selectedExport)
+ uploadDialog.open()
} else {
saveAsDialog.open()
}