summaryrefslogtreecommitdiffstats
path: root/accounts/kolabnow
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/kolabnow')
-rw-r--r--accounts/kolabnow/package/contents/ui/KolabnowAccountSettings.qml9
1 files changed, 7 insertions, 2 deletions
diff --git a/accounts/kolabnow/package/contents/ui/KolabnowAccountSettings.qml b/accounts/kolabnow/package/contents/ui/KolabnowAccountSettings.qml
index 017bf40a..be509641 100644
--- a/accounts/kolabnow/package/contents/ui/KolabnowAccountSettings.qml
+++ b/accounts/kolabnow/package/contents/ui/KolabnowAccountSettings.qml
@@ -27,6 +27,7 @@ Item {
27 property string accountId 27 property string accountId
28 property string heading: qsTr("Connect your KolabNOW account") 28 property string heading: qsTr("Connect your KolabNOW account")
29 property string subheadline: qsTr("To let Kube access your account, fill in email address, username, password and give the account a title that will be displayed inside Kube.") 29 property string subheadline: qsTr("To let Kube access your account, fill in email address, username, password and give the account a title that will be displayed inside Kube.")
30 property bool valid: accountField.acceptableInput && nameField.acceptableInput && emailField.acceptableInput && pwField.acceptableInput
30 31
31 KolabnowAccount.KolabnowSettings { 32 KolabnowAccount.KolabnowSettings {
32 id: kolabnowSettings 33 id: kolabnowSettings
@@ -60,19 +61,22 @@ Item {
60 Layout.alignment: Qt.AlignRight 61 Layout.alignment: Qt.AlignRight
61 } 62 }
62 Kube.TextField { 63 Kube.TextField {
64 id: accountField
63 Layout.fillWidth: true 65 Layout.fillWidth: true
64 placeholderText: qsTr("E.g. \"Work\", \"Home\" that will be displayed in Kube as name") 66 placeholderText: qsTr("E.g. \"Work\", \"Home\" that will be displayed in Kube as name")
65 text: kolabnowSettings.accountName 67 text: kolabnowSettings.accountName
66 onTextChanged: { 68 onTextChanged: {
67 kolabnowSettings.accountName = text 69 kolabnowSettings.accountName = text
68 } 70 }
71 validator: RegExpValidator { regExp: /.*\S.*/ }
69 } 72 }
70 73
71 Kube.Label { 74 Kube.Label {
72 text: qsTr("Name") 75 text: qsTr("Name")
73 Layout.alignment: Qt.AlignRight 76 Layout.alignment: Qt.AlignRight
74 } 77 }
75 Kube.TextField { 78 Kube.RequiredTextField {
79 id: nameField
76 Layout.fillWidth: true 80 Layout.fillWidth: true
77 placeholderText: qsTr("Your name") 81 placeholderText: qsTr("Your name")
78 text: kolabnowSettings.userName 82 text: kolabnowSettings.userName
@@ -85,7 +89,8 @@ Item {
85 text: qsTr("Email address") 89 text: qsTr("Email address")
86 Layout.alignment: Qt.AlignRight 90 Layout.alignment: Qt.AlignRight
87 } 91 }
88 Kube.TextField { 92 Kube.RequiredTextField {
93 id: emailField
89 Layout.fillWidth: true 94 Layout.fillWidth: true
90 95
91 text: kolabnowSettings.emailAddress 96 text: kolabnowSettings.emailAddress