summaryrefslogtreecommitdiffstats
path: root/components/accounts/contents/ui/AccountWizardPage.qml
diff options
context:
space:
mode:
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: {