diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-08 12:54:31 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-08 13:59:31 +0200 |
commit | 3f1187e1ecd3dfa04f8bdf8022b03e7d739d9b80 (patch) | |
tree | 69e300bdf80cbc498e24f3f3600a98896ed32f97 /framework/qml/EditAccount.qml | |
parent | 996f194ecdcc07dc71db1f28de5798bcf387b63d (diff) | |
download | kube-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.qml | 4 |
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 | |||
25 | Item { | 25 | Item { |
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() |