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 /components/accounts/contents/ui/AccountWizardPage.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 'components/accounts/contents/ui/AccountWizardPage.qml')
-rw-r--r-- | components/accounts/contents/ui/AccountWizardPage.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/accounts/contents/ui/AccountWizardPage.qml b/components/accounts/contents/ui/AccountWizardPage.qml index b0b33049..f7885ce4 100644 --- a/components/accounts/contents/ui/AccountWizardPage.qml +++ b/components/accounts/contents/ui/AccountWizardPage.qml | |||
@@ -30,7 +30,7 @@ Item { | |||
30 | signal done() | 30 | signal done() |
31 | 31 | ||
32 | property bool isFirstView: root.Controls2.StackView.index == 0 | 32 | property bool isFirstView: root.Controls2.StackView.index == 0 |
33 | property bool singleAccountMode: false | 33 | property bool requireSetup: false |
34 | 34 | ||
35 | Kube.AccountFactory { | 35 | Kube.AccountFactory { |
36 | id: accountFactory | 36 | id: accountFactory |
@@ -119,7 +119,7 @@ Item { | |||
119 | left: parent.left | 119 | left: parent.left |
120 | bottom: parent.bottom | 120 | bottom: parent.bottom |
121 | } | 121 | } |
122 | visible: !root.singleAccountMode | 122 | visible: !root.requireSetup |
123 | 123 | ||
124 | text: qsTr("Discard") | 124 | text: qsTr("Discard") |
125 | onClicked: { | 125 | onClicked: { |