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.qml55
1 files changed, 25 insertions, 30 deletions
diff --git a/components/accounts/contents/ui/AccountWizardPage.qml b/components/accounts/contents/ui/AccountWizardPage.qml
index a4dc7e25..b693ea11 100644
--- a/components/accounts/contents/ui/AccountWizardPage.qml
+++ b/components/accounts/contents/ui/AccountWizardPage.qml
@@ -35,6 +35,7 @@ Item {
35 } 35 }
36 36
37 Controls.ToolButton { 37 Controls.ToolButton {
38 id: backButton
38 iconName: Kube.Icons.goBack 39 iconName: Kube.Icons.goBack
39 tooltip: "go back" 40 tooltip: "go back"
40 onClicked: { 41 onClicked: {
@@ -44,10 +45,11 @@ Item {
44 45
45 //Item to avoid anchors conflict with stack 46 //Item to avoid anchors conflict with stack
46 Item { 47 Item {
47 48 anchors{
48 anchors { 49 top: backButton.bottom
49 fill: parent 50 left: parent.left
50 margins: Kube.Units.largeSpacing * 2 51 right: parent.right
52 bottom: parent.bottom
51 } 53 }
52 54
53 Kirigami.Heading { 55 Kirigami.Heading {
@@ -98,8 +100,9 @@ Item {
98 } 100 }
99 101
100 //This is where we should place the account wizard ui 102 //This is where we should place the account wizard ui
101 GridLayout { 103 Item {
102 id: footer 104 id: footer
105
103 anchors { 106 anchors {
104 bottom: parent.bottom 107 bottom: parent.bottom
105 left: parent.left 108 left: parent.left
@@ -107,36 +110,28 @@ Item {
107 topMargin: Kube.Units.largeSpacing * 2 110 topMargin: Kube.Units.largeSpacing * 2
108 } 111 }
109 112
110 columns: 2 113 Kube.Button {
111 columnSpacing: Kube.Units.largeSpacing 114 anchors {
112 rowSpacing: Kube.Units.largeSpacing 115 left: parent.left
113 116 bottom: parent.bottom
114 Item { 117 }
115 Layout.fillHeight: true
116 }
117 118
118 Kirigami.Label { 119 text: "Discard"
119 text: "" 120 onClicked: {
121 popup.close()
122 }
120 } 123 }
121 124
122 Item { 125 Kube.PositiveButton {
123 Layout.fillWidth: true 126 anchors {
124 127 right: parent.right
125 Controls.Button { 128 bottom: parent.bottom
126 text: "Discard"
127
128 onClicked: {
129 popup.close()
130 }
131 } 129 }
132 130
133 Controls.Button { 131 text: "Save"
134 anchors.right: parent.right 132 onClicked: {
135 text: "Save" 133 loader.item.save()
136 onClicked: { 134 popup.close()
137 loader.item.save()
138 popup.close()
139 }
140 } 135 }
141 } 136 }
142 } 137 }