summaryrefslogtreecommitdiffstats
path: root/framework/qml/EditAccount.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-08 12:54:31 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-08 13:59:31 +0200
commit3f1187e1ecd3dfa04f8bdf8022b03e7d739d9b80 (patch)
tree69e300bdf80cbc498e24f3f3600a98896ed32f97 /framework/qml/EditAccount.qml
parent996f194ecdcc07dc71db1f28de5798bcf387b63d (diff)
downloadkube-3f1187e1ecd3dfa04f8bdf8022b03e7d739d9b80.tar.gz
kube-3f1187e1ecd3dfa04f8bdf8022b03e7d739d9b80.zip
Generalize the single account concept.
* The wizard get's configured with a list of available accounts. * If only a single account type is available we skip the selection. * For the first account, account setup can not be aborted. * In single account mode the account can not be removed.
Diffstat (limited to 'framework/qml/EditAccount.qml')
-rw-r--r--framework/qml/EditAccount.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/qml/EditAccount.qml b/framework/qml/EditAccount.qml
index 8600868f..25d3dba0 100644
--- a/framework/qml/EditAccount.qml
+++ b/framework/qml/EditAccount.qml
@@ -25,7 +25,7 @@ import org.kube.framework 1.0 as Kube
25Item { 25Item {
26 id: root 26 id: root
27 property string accountId 27 property string accountId
28 property bool singleAccountMode: false 28 property bool canRemove: true
29 29
30 Kube.AccountFactory { 30 Kube.AccountFactory {
31 id: accountFactory 31 id: accountFactory
@@ -114,7 +114,7 @@ Item {
114 114
115 Kube.Button { 115 Kube.Button {
116 text: qsTr("Remove Account") 116 text: qsTr("Remove Account")
117 visible: !root.singleAccountMode 117 visible: root.canRemove
118 118
119 onClicked: { 119 onClicked: {
120 loader.item.remove() 120 loader.item.remove()