diff options
-rw-r--r-- | components/accounts/CreateKolabNow.qml | 6 | ||||
-rw-r--r-- | components/package/contents/ui/AccountSwitcher.qml | 20 |
2 files changed, 17 insertions, 9 deletions
diff --git a/components/accounts/CreateKolabNow.qml b/components/accounts/CreateKolabNow.qml index c362bef6..fbcb5fd7 100644 --- a/components/accounts/CreateKolabNow.qml +++ b/components/accounts/CreateKolabNow.qml | |||
@@ -93,6 +93,12 @@ Item { | |||
93 | Layout.fillWidth: true | 93 | Layout.fillWidth: true |
94 | 94 | ||
95 | placeholderText: "E.g. \"Work\", \"Home\" that will be displayed in Kube as name" | 95 | placeholderText: "E.g. \"Work\", \"Home\" that will be displayed in Kube as name" |
96 | |||
97 | text: account.name | ||
98 | |||
99 | onTextChanged: { | ||
100 | account.name = text | ||
101 | } | ||
96 | } | 102 | } |
97 | 103 | ||
98 | Controls.Label { | 104 | Controls.Label { |
diff --git a/components/package/contents/ui/AccountSwitcher.qml b/components/package/contents/ui/AccountSwitcher.qml index 41b3478c..d5f7610c 100644 --- a/components/package/contents/ui/AccountSwitcher.qml +++ b/components/package/contents/ui/AccountSwitcher.qml | |||
@@ -19,6 +19,8 @@ | |||
19 | import QtQuick 2.4 | 19 | import QtQuick 2.4 |
20 | import QtQuick.Layouts 1.1 | 20 | import QtQuick.Layouts 1.1 |
21 | import QtQuick.Controls 2.0 as Controls2 | 21 | import QtQuick.Controls 2.0 as Controls2 |
22 | import QtQuick.Controls 1.4 as Controls | ||
23 | |||
22 | import QtQml 2.2 as QtQml | 24 | import QtQml 2.2 as QtQml |
23 | 25 | ||
24 | import org.kde.kirigami 1.0 as Kirigami | 26 | import org.kde.kirigami 1.0 as Kirigami |
@@ -156,18 +158,18 @@ Controls2.Button { | |||
156 | accountId: model.accountId | 158 | accountId: model.accountId |
157 | } | 159 | } |
158 | 160 | ||
159 | Kirigami.Icon { | 161 | // Kirigami.Icon { |
160 | source: accountFactory.icon | 162 | // source: model.icon |
161 | } | 163 | // } |
162 | 164 | ||
163 | Controls2.Label { | 165 | Controls2.Label { |
164 | text: model.name === "" ? accountFactory.name : model.name | 166 | text: model.name |
167 | } | ||
168 | |||
169 | Controls.ToolButton { | ||
170 | visible: model.showStatus | ||
171 | source: model.statusIcon | ||
165 | } | 172 | } |
166 | //FIXME port to qqc2 | ||
167 | // Button { | ||
168 | // visible: model.showStatus | ||
169 | // source: model.statusIcon | ||
170 | // } | ||
171 | } | 173 | } |
172 | Controls2.Button { | 174 | Controls2.Button { |
173 | 175 | ||