summaryrefslogtreecommitdiffstats
path: root/components/accounts/contents/ui/AccountWizardPage.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-07 17:07:29 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-07 22:44:36 +0200
commit6f4e9230a88bc2262a1093ae9f2507f1160bff54 (patch)
tree12fed1e37e452bf4b4bf8986492e0bdfe28a8b38 /components/accounts/contents/ui/AccountWizardPage.qml
parentb7b5ec6b6b6dc269500574ea6d8c34852179edc7 (diff)
downloadkube-6f4e9230a88bc2262a1093ae9f2507f1160bff54.tar.gz
kube-6f4e9230a88bc2262a1093ae9f2507f1160bff54.zip
Single account mode
It's hardcoded to be enabled and set to kolabnow at the moment (TBD).
Diffstat (limited to 'components/accounts/contents/ui/AccountWizardPage.qml')
-rw-r--r--components/accounts/contents/ui/AccountWizardPage.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/accounts/contents/ui/AccountWizardPage.qml b/components/accounts/contents/ui/AccountWizardPage.qml
index f5d10258..6c9befea 100644
--- a/components/accounts/contents/ui/AccountWizardPage.qml
+++ b/components/accounts/contents/ui/AccountWizardPage.qml
@@ -29,6 +29,9 @@ Item {
29 property string accountType 29 property string accountType
30 signal done() 30 signal done()
31 31
32 property bool isFirstView: root.Controls2.StackView.index == 0
33 property bool singleAccountMode: false
34
32 Kube.AccountFactory { 35 Kube.AccountFactory {
33 id: accountFactory 36 id: accountFactory
34 accountType: root.accountType 37 accountType: root.accountType
@@ -38,6 +41,7 @@ Item {
38 id: backButton 41 id: backButton
39 iconName: Kube.Icons.goBack 42 iconName: Kube.Icons.goBack
40 tooltip: "go back" 43 tooltip: "go back"
44 visible: !root.isFirstView
41 onClicked: { 45 onClicked: {
42 stack.pop() 46 stack.pop()
43 } 47 }
@@ -115,6 +119,7 @@ Item {
115 left: parent.left 119 left: parent.left
116 bottom: parent.bottom 120 bottom: parent.bottom
117 } 121 }
122 visible: !root.singleAccountMode
118 123
119 text: qsTr("Discard") 124 text: qsTr("Discard")
120 onClicked: { 125 onClicked: {