summaryrefslogtreecommitdiffstats
path: root/accounts
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-01-24 11:46:56 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-01-24 11:46:56 +0100
commit23d0a911ff3618e74f134722b9bfa47c429df7f7 (patch)
tree955dc545709e1d1a12e1f6c91155cec52b9a5b91 /accounts
parentd1137017d4a94d8c2f2def84fed7d027bd4c7b00 (diff)
downloadkube-23d0a911ff3618e74f134722b9bfa47c429df7f7.tar.gz
kube-23d0a911ff3618e74f134722b9bfa47c429df7f7.zip
Tie the account name to the email address
Diffstat (limited to 'accounts')
-rw-r--r--accounts/gmail/qml/AccountSettings.qml14
-rw-r--r--accounts/imap/qml/AccountSettings.qml14
2 files changed, 2 insertions, 26 deletions
diff --git a/accounts/gmail/qml/AccountSettings.qml b/accounts/gmail/qml/AccountSettings.qml
index 0ebce1d3..15430a17 100644
--- a/accounts/gmail/qml/AccountSettings.qml
+++ b/accounts/gmail/qml/AccountSettings.qml
@@ -63,19 +63,6 @@ Item {
63 } 63 }
64 64
65 Kube.Label { 65 Kube.Label {
66 text: qsTr("Title of Account")
67 Layout.alignment: Qt.AlignRight
68 }
69 Kube.TextField {
70 Layout.fillWidth: true
71 placeholderText: qsTr("E.g. \"Work\", \"Home\" that will be displayed in Kube as name")
72 text: gmailSettings.accountName
73 onTextChanged: {
74 gmailSettings.accountName = text
75 }
76 }
77
78 Kube.Label {
79 text: qsTr("Name") 66 text: qsTr("Name")
80 Layout.alignment: Qt.AlignRight 67 Layout.alignment: Qt.AlignRight
81 } 68 }
@@ -98,6 +85,7 @@ Item {
98 text: gmailSettings.emailAddress 85 text: gmailSettings.emailAddress
99 onTextChanged: { 86 onTextChanged: {
100 gmailSettings.emailAddress = text 87 gmailSettings.emailAddress = text
88 gmailSettings.accountName = text
101 } 89 }
102 placeholderText: qsTr("Your email address") 90 placeholderText: qsTr("Your email address")
103 } 91 }
diff --git a/accounts/imap/qml/AccountSettings.qml b/accounts/imap/qml/AccountSettings.qml
index d81f9c54..186b6bd7 100644
--- a/accounts/imap/qml/AccountSettings.qml
+++ b/accounts/imap/qml/AccountSettings.qml
@@ -52,19 +52,6 @@ Item {
52 rowSpacing: Kube.Units.largeSpacing 52 rowSpacing: Kube.Units.largeSpacing
53 53
54 Kube.Label { 54 Kube.Label {
55 text: qsTr("Title of Account")
56 Layout.alignment: Qt.AlignRight
57 }
58 Kube.RequiredTextField {
59 Layout.fillWidth: true
60 placeholderText: qsTr("E.g. \"Work\", \"Home\" that will be displayed in Kube as name")
61 text: imapSettings.accountName
62 onTextChanged: {
63 imapSettings.accountName = text
64 }
65 }
66
67 Kube.Label {
68 text: qsTr("Name") 55 text: qsTr("Name")
69 Layout.alignment: Qt.AlignRight 56 Layout.alignment: Qt.AlignRight
70 } 57 }
@@ -89,6 +76,7 @@ Item {
89 imapSettings.emailAddress = text 76 imapSettings.emailAddress = text
90 imapSettings.imapUsername = text 77 imapSettings.imapUsername = text
91 imapSettings.smtpUsername = text 78 imapSettings.smtpUsername = text
79 imapSettings.accountName = text
92 } 80 }
93 placeholderText: qsTr("Your email address") 81 placeholderText: qsTr("Your email address")
94 } 82 }